pihta24

Длина окружности и площадь круга

Feb 2nd, 2021
1,695
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. def circle_length(radius):
  2.     return 2 * 3.14159 * radius
  3.  
  4.  
  5. def circle_area(radius):
  6.     return 3.14159 * radius ** 2
  7.  
  8.  
  9. def main():
  10.     radius = float(input())
  11.     print(circle_length(radius), circle_area(radius))
  12.  
Advertisement
Add Comment
Please, Sign In to add comment