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