# Volume of cylinder. (function)

DECLARE FUNCTION VOL(r,h)
CLS
INPUT "Enter radius ";r
INPUT "Enter height";h
PRINT "Volume of cylinder =";VOL(r,h)
END

FUNCTION VOL(r,h)
V=22/7*r^2*h
VOL=V
END FUNCTION

Comments

Popular posts from this blog