A python program that reads the radius and length of a cylinder and computes the area and volume
- Nelson John
- Nov 22, 2017
- 1 min read
# prompt user to enter radius of a cylinder
radius = eval(input("enter the radius of a cylinder: "))
# prompt user to enter length of a cylinder
length = eval(input("enter the length of a cylinder: "))
# compute area and volume of cylinder
area = radius * radius * 3.14159
volume = area * length
#display result
print("the area is", area)
print("the volume is", volume)

Facebook: ayamnelrodinho1@gmail.com
Yahoo: talk2nelsonjohn2dat@yahoo.com
Whatsapp: +2349034595610
PLEASE KINDLY SHARE WITH FELLOW PROGRAMMERS AND ALSO SUBSCRIBE TO MY BLOG FOR MORE FEEDS.
Comments