fork download
  1. # your code goes here
  2. total = 0
  3. for i in range(1, 1000):
  4. if i % 3 == 0 or i % 5 == 0:
  5. # print("number: {}".format(i))
  6. total = total + i
  7.  
  8. print("total: {}".format(total))
Success #stdin #stdout 0.01s 28384KB
stdin
Standard input is empty
stdout
total: 233168