Advertisement
ydpetkov

circle_area_parameter

Jul 14th, 2022
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. from math import pi
  2.  
  3. r = float(input())
  4.  
  5. calculated_area = pi * (r ** 2)
  6. calculated_parameter = 2 * pi * r
  7.  
  8. print(f'{calculated_area:.2f}')
  9. print(f'{calculated_parameter:.2f}')
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement