You are here

pow10 function in C

#include <stdio.h>
#include <math.h>

int main()
{
   int x = 5;
   double result;

   result = pow10(x);

   printf("Ten raised to %d is %lf\n", x, result);

   return 0;
}

Share this