Computer Science, asked by Avaneeshsingh0908, 2 months ago

WAP using LET statement to find the area of square​

Answers

Answered by anindyaadhikari13
1

Required Answer:-

Question:

  • WAP using LET statement to find out the area of a square.

Solution:

Here comes the solution. It is written in QBASIC.

10 CLS

20 INPUT "Enter Side Of The Square:";N

30 LET A = N * N

40 PRINT "Area Of The Square Is:"

50 PRINT A

60 END

Algorithm:

  1. START
  2. Accept the side of the square from the user.
  3. Calculate area of the square and store the area in A variable.
  4. Display the area of the square.
  5. STOP.

See the attachment for output ☑.

Attachments:
Similar questions