Exponentiation (Power of a number)

# Exponentiation (Power of a number)

print("\n\nExponentiation (Power of a number)")
base = int(input("Enter base : "))
power = int(input("Enter power : "))

print(base, "to the power of", power , "is", (base ** power))

No comments:

Post a Comment

Don't be a silent reader...
Leave your comments...

Anu