Write a python program that prompts the user to enter two integers x and y. The program then calculates and displays x^y.PROGRAM:x=int(input("Enter x:"))y=int(input("Enter y:"))p=x**yprint("x^y:",p)OUTPUT:Enter x: 2Enter y: 3x^y: 8
No comments:
Post a Comment