Computer Science, asked by bulbusaha1234, 2 months ago

Accept side of a Square and prints its Area.​

Answers

Answered by Saniya
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 anindyaadhikari13
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:

  1. START
  2. Accept side of the square.
  3. Calculate area of the square and store the result in a variable.
  4. Display 'a'.
  5. STOP

Refer to the attachment for output ☑.

Attachments:
Similar questions