Saturday, 24 December 2011

pow

#include<stdio.h>
#include<math.h>
 
main()
{
double a, b, result;
 
printf("Enter a and b to calculate a^b ");
scanf("%lf%lf",&a, &b);
 
result = pow(a, b);
 
printf("%lf raised to %lf = %lf", a, b, result);
 
return 0;
}
 
 

No comments:

Post a Comment