C language ABS () function: Find absolute value (integer)
header file:
To define a function:
Function Description: ABS () is used to calculate the absolute value of the parameter J, and then return the result.
Return value: Returns the absolute result of the parameter J.
Example
#ingclude <stdlib.h>
Main () {
int ansert;
Answer = ABS ( -12);
printf ("|-12| =%d\n ", answer);
}
Perform
C language exp () function: The second power function of E (the x-th square value at the end of E)
header file:
EXP () is used to calculate the X-square value, the ex value, at the base of E, and then return the result. Its prototype is:
return value returns the X-square calculation of E.
Note that when compiling with GCC, please join-LM.
"Instance" calculates the value of the 10-second side of E.
#include <math.h>
Main () {
double answer;
Answer = exp (ten);
printf ("e^10 =%f\n", answer);
}
Run Result: