This commit is contained in:
s45147 2017-11-20 09:43:00 +01:00
parent 7cc01637fb
commit c941f0f6ac

View File

@ -7,7 +7,12 @@ przez 3 lub 5 mniejszych niż n.
"""
def sum_div35(n):
pass
suma = 0
for i in range(n):
if (i+1) < n and (i+1)%3 == 0 and (i+1)%5 == 0:
suma += (i+1)
return suma
def tests(f):
inputs = [[10], [100], [3845]]