Document From SHIRSHA
Document From SHIRSHA
By
GOVERNMENT COLLEGE OF
ENGINEERING AND LEATHER
TECHNOLOGY
Problem 1: Write a method which can calculate square
value of number?
Code:
#question1
import math
num=int(input("Enter a number: "))
print(math.pow(num,2))
output:
Enter a number: 5
25.0