QBASIC PROGRAMMING #3(TO FIND VOLUME )
To Find Volume of Cylinder
CLSINPUT "Enter radius"; rINPUT "Enter height"; hV = 22 / 7 * r ^ 2 * hPRINT "Volume of cylinder="; VEND
To Find Volume of Cube
CLSINPUT "Enter length"; lV = l ^ 3PRINT "Volume of cube="; VEND
To Find Volume of Box
CLSINPUT "Enter length"; lINPUT "Enter breadth"; bINPUT "Enter height"; hV = l * b * hPRINT "Volume of box="; VENDx
No comments:
Post a Comment