QUESTION DESCRIPTION
Write a program to find the exponentation of given number
Input 1: Number of terms
Input 2: Base
Output:
Write a program to find the exponentation of given number
Input 1: Number of terms
Input 2: Base
Output:
List of exponentation terms for the given input
'
a=int(input())
b=int(input())
print("The total terms is:",a)
for a in range(0,a):
ans=b**a
print(ans)
Comments
Post a Comment