C program to calculate X^N (X to the power of N) using pow function
pow() is used to calculate the power of any base, this library function is defined in math.h header file. In this program we will read X as the base and N as the power and will calculate the result (X^N - X to the power of N).
pow() function example/program to calculate X^N in c program
Output
Enter the value of base: 3 Enter the value of power: 7 3 to the power of 7 is= 2187need an explanation for this answer? contact us directly to get an explanation for this answer