Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- radius = float(input())
- height = float(input())
- volume = math.pi * radius * radius * height / 3
- area = math.pi * radius * (radius + math.sqrt(radius * radius + height * height))
- print(f'volume = {volume:.4f}')
- print(f'area = {area:.4f}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement