C program to find power of a given number using recursion
Answers
Answered by
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
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
English,
6 months ago
Chemistry,
6 months ago
Math,
6 months ago
Geography,
11 months ago
Biology,
11 months ago
Political Science,
1 year ago
World Languages,
1 year ago
Social Sciences,
1 year ago