Computer Science, asked by vaigashaji, 5 months ago

write q basic programme to input the length and breath of the rectangle and find its area

Answers

Answered by BrainlyProgrammer
4

QUESTION:-

  • QBASIC Code to accept length and breadth as input and calculate area

Code:-

CLS

PRINT "ENTER LENGTH AND BREADTH OF THE RECTANGLE"

INPUT L,B

A=L*B

PRINT "AREA="+A

END

Variable Description:-

  • L:- to accept Length from the user
  • B:- to accept breadth from the user
  • A:- to calculate and store the area of the rectangle

Output:-

ENTER LENGTH AND BREADTH OF THE RECTANGLE

4

5

AREA=20

Explaination:-

  • The program accepts length and breadth from the user and calculate the area of the rectangle and storevit in the variable A.
  • Finally, PRINT "AREA"+A statement displays the area.
Similar questions