Basic Program To Calculate and Tell Area and Perimeter

REM CALCULATE AND TELL AREA AND PERIMETER
INPUT “ENTER LENGTH=”; L
INPUT “ENTER BREADTH=”; B
PRINT ” MENU ”
PRINT ” 1. AREA OF RECTANGLE ”
PRINT ” 2. PERIMETER OF RECTANGLE ”
INPUT “ENTER YOUR CHOICE”; CHOICE
IF CHOICE = 1 THEN GOTO 10 ELSE GOTO 20
10 LET AREA = L * B
PRINT AREA: END
20 LET PERI = 2 * (L + B)
PRINT PERI
END

Please follow and like us:

Leave a comment