Computer Science, asked by kumsarita74, 1 month ago

Q7 WAP te in QBASIC to enter the
lenght and breach of a rectangle
Display the cared and perimetors of
rectangle.​

Answers

Answered by purveshKolhe
2

Correct Question::

WAP in QBASIC to enter the length and breadth of a rectangle and display the area and perimeter of rectangle.

Answer::

CLS

INPUT "Enter the length of the rectangle: ",len

INPUT "Enter the breadth of the rectangle: ",bre

PRINT "Area is : " + (len * bre)

PRINT "Perimeter is: " + (2*(len + bre))

END

Output::

This will ask for two inputs where first enter length and then breadth. Then it will print area first and then perimeter.

An Advice::

Try making less grammatical mistakes.

HOPE THIS HELPS YOU.

Similar questions