fork download
  1. def month(an):
  2. anp1 = 1.01*(an + 30.)
  3. return anp1
  4.  
  5. a = 1.
  6. m = 0
  7.  
  8. while a <= 100000000:
  9. a = month(a)
  10. m += 1
  11.  
  12. print m, a
Success #stdin #stdout 0.01s 9016KB
stdin
Standard input is empty
stdout
1046 100399096.921