# Area of a box. (function)
DECLARE FUNCTION AREA (l,b,h)
CLS
INPUT " Enter length "; l
INPUT " Enter breadth "; b
INPUT " Enter height " ;h
PRINT " Area of a 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 a box =";AREA(l,b,h)
END
FUNCTION AREA (l,b,h)
A=2*(l*h+ b*h+l*b)
AREA=A
END FUNCTION
Comments
Post a Comment