QBASIC PROGRAM TO FIND VOLUME OF CYLINDER USING FUNCTION.
DECLARE FUNCTION VOL(R,H)
CLS
INPUT"ENTER RADIUS";R
INPUT"ENTER HEIGHT";H
PRINT"VOLUME OF CYLINDER=";VOL9R,H)
END
FUNCTION VOL(R,H)
V=22/7*R^2*H
VOL=V
END FUNCTION
DECLARE FUNCTION VOL(R,H)
CLS
INPUT"ENTER RADIUS";R
INPUT"ENTER HEIGHT";H
PRINT"VOLUME OF CYLINDER=";VOL9R,H)
END
FUNCTION VOL(R,H)
V=22/7*R^2*H
VOL=V
END FUNCTION
Comments
Post a Comment