#program to calculate a^b using recursion
import math
def power(a,b):
c=math.pow(a,b)
return c
no1=int(input('enter the positive base no.:'))
no2=int(input('enter the positive raised power no.: '))
p=power(no1,no2)
import math
def power(a,b):
c=math.pow(a,b)
return c
no1=int(input('enter the positive base no.:'))
no2=int(input('enter the positive raised power no.: '))
p=power(no1,no2)
print('the result for',no1,'to the power',no2,'is',int(p))m
VERY NICE SIR
ReplyDelete