Showing posts with label Exponentiation. Show all posts
Showing posts with label Exponentiation. Show all posts

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))