please tell me the answer I will mark as brain list answer
Attachments:
Answers
Answered by
3
Answer:
Display area of square.
REM PROGRAM TO DISPLAY AREA OF SQUARE
CLS
INPUT “ENTER LENGTH”; L
A = L ^ 2
PRINT “AREA OF SQUARE ”; A
END
AREA OF A SQUARE USING SUB PROCEDURE
DECLARE SUB AREA (L)
CLS
INPUT “ENTER LENGTH”; L
CALL AREA(L)
END
SUB AREA (L)
A = L ^ 2
PRINT “AREA OF SQUARE”; A
END SUB
AREA OF A SQUARE USING FUNCTION PROCEDURE
DECLARE FUNCTION AREA (L)
CLS
INPUT “ENTER LENGTH”; L
AR = AREA(L)
PRINT “AREA OF SQUARE ”; AR
END
FUNCTION AREA (L)
A = L ^ 2
AREA = A
END FUNCTION
Explanation:
don't forget to follow
best of luck for exam
Similar questions
English,
1 month ago
Hindi,
1 month ago
Hindi,
3 months ago
Math,
9 months ago
Social Sciences,
9 months ago