Computer Science, asked by Ahawk7705, 11 months ago

C program to find power of a given number using recursion

Answers

Answered by swati2726
0

This C program to find power of a given number using recursion. For example if base is 2 and exponent is 3 then the power of a number 2 ki power 3= 8.

Answered by anitha1821
1

C program to find power of a number using recursion

Logic. We include one base case i.e. when exponent is zero then we return 1 and a non base case i.e. multiply base with recursive call to power with expopnent decreased by 1.

Dry Run of the Program. Take input as base=2 and power=3. ...

Program. c-program to find power of a number using recursion. ...

Output. You may also Like.

Similar questions