Computer Science, asked by ankitsinghkv5166, 10 months ago

Write a program to input two integrs n and p. find and print n raised to the power p

Answers

Answered by Anonymous
148

\huge \green { \boxed{ \boxed{ \mathsf{ \mid \ulcorner Answer: \urcorner \mid }}}}

___________[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