Python program to calculate power of a number - Coder's point

Saturday, June 1, 2019

Python program to calculate power of a number

 
a=int(input("Enter a number: ")) n=int(input("Enter the power: ")) x=pow(a,n) print("The value of ",a,"**",n," is ",x)
OUTPUT:
Enter a number : 4
Enter the power : 2
The value of 4 **2 is 16

No comments:

Post a Comment