Calculate numeric power: how to use pow : Power « Math « C / ANSI-C






Calculate numeric power: how to use pow

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

1.How to use powHow to use pow
2.Our own power function