Python program to calculate the area of the square.

In this python basic program, we will calculate the area of the square.
Formula: area = side^2

Steps to solve the program
  1. Take a side of a square as input through the user.
  2. To calculate the area of the square use the following formula: side^2.
  3. 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
				
			

solve the given math formula. Formula : (a – b)3 = a3 – 3a2b + 3ab2 – b3

calculate the area of a circle.

Leave a Comment