C powl code example
Example 1: pow() c
int base = 3;
int power = 5;
pow(double(base), double(power));
Example 2: c++ power
/* pow example */
#include <stdio.h> /* printf */
#include <math.h> /* pow */
int main ()
{
printf ("7 ^ 3 = %f\n", pow (7.0, 3.0) );
printf ("4.73 ^ 12 = %f\n", pow (4.73, 12.0) );
printf ("32.01 ^ 1.54 = %f\n", pow (32.01, 1.54) );
return 0;
}
Example 3: pow() c
[Mathematics] xy = pow(x, y) [In programming]