simeonshopov

Area+perimeter of circle

Sep 2nd, 2019
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. import math
  2. r=float(input())
  3. area=math.pi*r**2
  4. perimeter=2*math.pi*r
  5. print('%.2f'%area)
  6. print('%.2f'%perimeter)
Advertisement
Add Comment
Please, Sign In to add comment