Write a C program to calculate power(x,n)

Write a C program to calculate power(x,n)

Logic is very simple which include recursive call of same function until power become zero and multiply the results as you can see below.

 

 

Output

Write a c program power(x,n)