Write a program to input two integrs n and p. find and print n raised to the power p
Answers
Answered by
148
___________[Code]_______________
n = int(input("Enter value of n = "))
p = int(input("Enter value of p = "))
y = n**p
print("The answer is : ",y)
______________[End]______________
Output
Enter value of n = 2
Enter value of p = 2
The answer is : 4
Note: You can use any number for getting value (here I used 2 for both)
Similar questions
Biology,
6 months ago
Social Sciences,
6 months ago
Math,
6 months ago
Political Science,
11 months ago
Political Science,
11 months ago
Physics,
1 year ago