-3

Create a program that asks users for input (integer) and outputs the input(integer) squared.

Title pretty much says it all. Help me please!

  • `print(int(input("Enter a number: ")) ** 2)` – zondo Feb 19 '16 at 01:54
  • 4
    You should provide some details regarding what you have tried before seeking an answer. Requests such as "write me a program to do x" are not appropriate on this site. – Kevin Burdett Feb 19 '16 at 01:55
  • Possible duplicate of [Python and Powers Math](http://stackoverflow.com/questions/12043913/python-and-powers-math) – Abhijeet Feb 19 '16 at 02:01

2 Answers2

1

Try this:

interger = input("Please enter an interger: ")
print(int(interger)**2)
Mark Skelton
  • 3,663
  • 4
  • 27
  • 47
-1

Fairly Simple:

x = int(input())
print(x*x)
vicbab
  • 31
  • 7