python program to find the exponent of two number were a=5 and b=3
Answers
Answered by
1
Answer:
Hope you find this help full
Explanation:
a = 5
b = 3
exponent_value = input( print( "Enter the exponent value: " ))
ans_a = 0
ans_b = 0
i = 1
while (exponent_value <=i):
ans_a = ans_a * ans_a
ans_b = ans_b * ans_b
i += 1
print("5 to the power", exponent_value , " ", ans_a)
print("3 to the power", exponent_value , " ", ans_b)
Similar questions