Python program to find Square of a Number

# input a number
number = int (raw_input ("Enter an integer number: "))
# calculate square
square = number*number
# print
print "Square of {0} is {1} ".format (number, square)

OUTPUT:

Enter an integer number: 8
Square of 8 is 64

Leave a Comment