Advertisement
Matvey_Kozvonin

dz 1234

Jan 21st, 2024
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. import math
  2. x=95
  3. a=0
  4. while x>=5:
  5. if x==95:
  6. a=math.sqrt(x+math.sqrt(5))/2
  7. x=x-5
  8. a=math.sqrt(x+a)
  9. x=x-5
  10. else:
  11. a=math.sqrt(x+a/2)
  12. x=x-5
  13. print('A=',a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement