Program to find the volume of a cylinder using LET statement

Find the volume of a cylinder using LET statement

-Program:

10     REM Program to find the volume of a cylinder using LET statement in GW-BASIC.
20     INPUT “Enter height of cylinder: ” ; H
30     INPUT “Enter radius of cylinder: ” ; R
40     LET PI = 22/7
50     VOL = PI*R*R*H
60     PRINT “Volume of cylinder is: ” ; VOL
70     END

Using the GW-BASIC emulator, I’ve created the following program:

Program at GW-BASIC to find Volume of cylinder

Program at GW-BASIC to find Volume of cylinder

-Output:

Output

Output


“My posts/articles/images are not allowed to be stolen/copied anywhere at Cyber space. Doing so will allow me to take a legal action against the copier.”

Related Posts

M.Bakhtiar Zuberi
I'm M.Bakhtiar Zuberi, the owner of 3DPixelz.com and its network websites. I've been web-developing & graphics-designing for the past 7 years, since the age of 11. I like to work with PHP/HTML and Photoshop/Illustrator. Part-time developer of ZCL and ETC cryptocurrencies. I love to blog here and write for Tribune in my free time.

Leave a Comment

Kindly solve the following puzzle to prove that you\'re not a bot: