total = 0 for i in range(1, 100): if i % 3 == 0: total = total + i print(total) total1 = 0 for i in range(1, 100): if i % 5 == 0: total1 = total1 + i print(total1)