Pages

Tuesday, August 13, 2019

write a python program to calculate the area and perimeter of the square

# write a python program to calculate the area and perimeter of the square

l=int(input("Enter the Side of Square: "))
square_area=l*l
square_perimeter=4*l
print("Area of Square : ",square_area)
print("Perimeter of Square : ",square_perimeter)


# It display following output
Enter the Side of Square: 4
Area of Square :  16
Perimeter of Square :  16

No comments:

Post a Comment