Accept side of a Square and prints its Area.
Answers
Answered by
1
Explanation:
Program to find the area of the square
Area of the square is the amount of space occupied by a square. Square refers to a plane figure with four equal straight sides and four right angles.
Formula
area = width × height Area of square will be calculated as : area = side2 since width = height;
Answered by
1
Required Answer:-
Question:
- Write a program to accept side of a square and print it's area.
Solution:
Here comes the program.
s=float(input("Enter Side of Square: "))
a=s*s
print("Area of the Square is: ",a)
Algorithm:
- START
- Accept side of the square.
- Calculate area of the square and store the result in a variable.
- Display 'a'.
- STOP
Refer to the attachment for output ☑.
Attachments:
Similar questions