WAP using LET statement to find the area of square
Answers
Answered by
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:
- START
- Accept the side of the square from the user.
- Calculate area of the square and store the area in A variable.
- Display the area of the square.
- STOP.
See the attachment for output ☑.
Attachments:
Similar questions