Calculate numeric power: how to use pow
#include <stdio.h>
#include <math.h>
int main ()
{
printf ("7 ^ 3 = %lf\n", pow ( 7 , 3 ) );
printf ("5.73 ^ 12 = %lf\n", pow (5.73, 12 ) );
printf ("31.01 ^ 1.54 = %lf\n", pow (31.01, 1.54));
return 0;
}
Related examples in the same category