# Area of triangle. (function)

DECLARE FUNCTION AREA (b, h)
CLS
INPUT " Enter breadth"; b
INPUT " Enter height";h
PRINT "Area of triangle =";AREA(b,h)
END

FUNCTION AREA(b,h)
A=1/2*b*h
AREA=A
END FUNCTION

Comments

Popular posts from this blog