Saturday 14 September 2024

Practical - 54 - Write a program in Python that accepts side of a square and find the area of the square.

Practical - 54 - Write a program in Python that accepts side of a square and find the area of the square.


Ans:

side=float(input("Enter the side of square: "))

area=side*side

print("Area=",area)

 

Output:

Enter the side of square: 8

Area= 64.0


No comments:

Post a Comment