Write a Python program to calculate area and perimeter of the square.
IDE: Visual Studio Code ( VSC ). Present: go2collage.
Download hole Program / Project code, by clicking following link:
Programming Code:
# Basic Python Program
# Area and Perimeter of Square
side = float(input("Enter side of Square: "))
Area = side * side # formual of Area of Square
Perimeter = 4 * side # formula of Perimeter of Square
print("Area of Square is: ", Area)
print("Perimeter of Square is: ", Perimeter)
Output:
0 Comments