In this python basic program, we will calculate the area of the square.
Formula: area = side^2
Steps to solve the program
- Take a side of a square as input through the user.
- To calculate the area of the square use the following formula: side^2.
- Print the output.
side = int(input("Enter the side of a square: "))
print("Area of sqaure: ",side**2)
Output :
Enter the side of a square: 10
Area of sqaure: 100