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 find the exponentiation of a number.
Developed by:Jeswanth
RegisterNumber:21001768
def exp(x):
print("Exponentiation of a given number:",x**2)
x=int(input(""))
exp(x)
*/
Thus the program to find the exponentiation of a given number is written and verified using python programming.