Python Program to Calculate Square of a Number

Python Program to Calculate Square of a Number

How to Calculate Square of a Number? We can do it by Multiplying the Number with itself OR by Powering it by 2 OR we can also do it by using Modules.

Square of a Number by Python :



number = int(input('Please Enter any numeric Value : '))

square = number ** 2

print('The Square of a Given Number %d is = %d'%(number, square))


Output :