Advertisement
Spocoman

Cone

Jan 6th, 2022
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. radius = float(input())
  2. height = float(input())
  3.  
  4. volume = math.pi * radius * radius * height / 3
  5. area = math.pi * radius * (radius + math.sqrt(radius * radius + height * height))
  6.  
  7. print(f'volume = {volume:.4f}')
  8. print(f'area = {area:.4f}')
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement