/********************************************************************
Program to calculate the power of a number using pow() the function
********************************************************************/
#include<stdio.h> // include stdio.h library
#include<math.h> // include math.h library
int main(void)
{
double base, exponent;
printf("Enter base: ");
scanf("%lf", &base);
printf("Enter exponent: ");
scanf("%lf", &exponent);
printf("%.2f^%.2f = %.2f", base, exponent, pow(base, exponent));
return 0; // return 0 to operating system
}