18) AREA OF BOX.(FUNCTION)
DECLARE FUNCTION AREA (L, B, H)
CLS
INPUT" ENTER LENGTH"; L
INPUT" ENTER BREADTH"; B
INPUT" ENTER HEIGHT"; H
PRINT" AREA OF THE BOX"; AREA (L, B, H)
END
FUNCTION AREA (L, B, H)
A= 2 *(L*H + B*H + L*B)
AREA= A
END FUNCTION
DECLARE FUNCTION AREA (L, B, H)
CLS
INPUT" ENTER LENGTH"; L
INPUT" ENTER BREADTH"; B
INPUT" ENTER HEIGHT"; H
PRINT" AREA OF THE BOX"; AREA (L, B, H)
END
FUNCTION AREA (L, B, H)
A= 2 *(L*H + B*H + L*B)
AREA= A
END FUNCTION
0 comments