Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- radius=float(input("Enter Radius: "))
- height=float(input("Enter height: "))
- area =(radius**2)*(math.pi)
- print("The area of a cylinder with radius {0} is {1}".format(radius,area))
- volume =area*height
- print("The volume of a cylinder with radius {0} and height {1} is {2}".format(radius,height,volume))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement