fork download
  1. def mooon(weight, mnog):
  2. total_weight = 0
  3. for year in range(1, 15):
  4. total_weight = total_weight + weight * mnog
  5. print('Year %s = %s' % (year, total_weight))
  6.  
  7. mooon(100, 25)
  8.  
Success #stdin #stdout 0.04s 9272KB
stdin
Standard input is empty
stdout
Year 1 = 2500
Year 2 = 5000
Year 3 = 7500
Year 4 = 10000
Year 5 = 12500
Year 6 = 15000
Year 7 = 17500
Year 8 = 20000
Year 9 = 22500
Year 10 = 25000
Year 11 = 27500
Year 12 = 30000
Year 13 = 32500
Year 14 = 35000