Program to find area of box using FUNCTION

DECLARE FUNCTION AREA(L,B,H)
CLS 
INPUT"ENTER LENGTH";L
INPUT"ENTER BREADTH";B
INPUT"ENTER HEIGHT";H
PRINT"AREA OF BOX=";AREA(L,B,H)
END

FUNCTION AREA(L,B,H)
A=2*(L*B+B*H+L*H)
AREA=A
END FUNCTION

Comments

Popular posts from this blog

Tihar