72. Python Program to find the Power of a given number without using Multiplication.
How does this program work?
- This program is used to find the power of a given number without using multiplication using Python.
- The integer entered by the user is stored in variable n.
- Now calculated the power of a given number without using multiplication(*) followed by below code in Python.
Here is the code
a = int(input("Enter a number: "))
print(a," to the power of ", a," is : ",pow(a,a))