python-by-example-150-chall.../challenges27-34/challenge-032.py
2019-07-17 09:56:46 +03:00

8 lines
186 B
Python

import math
radius = float(input('Enter cylinder radius : '))
depth = float(input('Enter cylinder depth : '))
area = math.pi * (radius**2)
volume = area * depth
print(round(volume, 3))