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
Social Sciences,
5 months ago
English,
5 months ago
Political Science,
10 months ago
Political Science,
10 months ago
Physics,
1 year ago