fork(2) download
  1. pop = 795.0
  2. ded = 10900.0
  3. year = 0
  4. b = 14 /795
  5. d = 7 /795
  6. print(ded-pop)
  7. while (year < 390 ):
  8. ded += pop*d
  9. pop += pop*(b-d)
  10. year += 1
  11. print(ded-pop)
  12. print(ded)
  13. print(pop)
  14. print(year)
Success #stdin #stdout 0.02s 9088KB
stdin
Standard input is empty
stdout
10105.0
10104.999999999996
34381.752093049334
24276.752093049337
390