Multiples of 3 and 5

Run Settings
LanguagePython
Language Version
Run Command
def multiples(): i = 1 check3 = 0 check5 = 0 totalSum = 0 for i in range(0, 1000): check3 = i % 3 check5 = i % 5 if check3 is 0: totalSum += i elif check5 is 0: totalSum += i return totalSum print(multiples())
Editor Settings
Theme
Key bindings
Full width
Lines