Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- print("lets calculate volume of cylinder with 2 values, ratio and high in cms.")
- input1 = input("ratio > ")
- input2 = input("high > ")
- ratio = float(input1)
- high = float(input2)
- #pi1 = 3.1416
- result = math.pi * ratio * ratio * high
- output = str(result)
- print("volume of cylinder = " + output + " cms^3")
Advertisement
Add Comment
Please, Sign In to add comment