Advertisement
STANAANDREY

ex9 lab1 LSD

Sep 30th, 2022 (edited)
664
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. from math import pi
  2.  
  3.  
  4. def circle_circumference_area(radius):
  5.     circumference = 2 * radius * pi
  6.     area = radius * radius * pi
  7.     return circumference, area
  8.  
  9.  
  10. if __name__ == "__main__":
  11.     radius = int(input("radius="))
  12.     print("circumference=%d\narea=%d" % circle_circumference_area(radius))
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement