To write a program to find the exponentiation of a number.
- Hardware โ PCs
- Anaconda โ Python 3.7 Installation / Moodle-Code Runner
- Get the input from the user.
- Use exponentiation operator to find the exponentiation of a number.
#Program to to find the Exponentiation of a number.
#Developed by: Harini.B
#RegisterNumber: 21000879
def exponentiation():
a=int(input())
b=(a**2)
print("Exponentiation of a given number:",b)
exponentiation()
Thus the program to find the exponentiation of a given number is written and verified using python programming.