QBASIC PROGRAM TO FIND AREA OF 4 WALLS USING FUNCTION.
DECLARE FUNCTION AREA(L,B,H)
CLS
INPUT"ENTER LENGTH";L
INPUT"ENTER HEIGHT";H
INPUT"ENTER BREADTH";B
PRINT"AREA OF 4 WALLS=";AREA(L,B,H)
END
FUNCTION ARE(L,B,H)
A=2*H*(L+B)
AREA=A
END FUNCTION
DECLARE FUNCTION AREA(L,B,H)
CLS
INPUT"ENTER LENGTH";L
INPUT"ENTER HEIGHT";H
INPUT"ENTER BREADTH";B
PRINT"AREA OF 4 WALLS=";AREA(L,B,H)
END
FUNCTION ARE(L,B,H)
A=2*H*(L+B)
AREA=A
END FUNCTION
Comments
Post a Comment