Sunday, 15 March 2020

WAP PROGRAM TO DISPLAY AREA OF TRIANGLE USING FUNCTION PROCEDURE


a. WAP PROGRAM TO DISPLAY AREA OF TRIANGLE
DECLARE SUB AREA (B, H)
CLS
INPUT “ENTER BREADTH”; B
INPUT “ENTER HEIGHT”; H
CALL AREA (B, H)
END

SUB AREA (B, H)
A = 1 / 2  * (B * H)
PRINT “AREA OF TRIANGLE”; A
END SUB

No comments:

Post a Comment

MCQ Question Bank Microsoft PowerPoint