1
0
forked from tdwojak/Python2017

commited tasks

This commit is contained in:
s45150 2017-11-25 15:15:27 +01:00
parent 4480bb891e
commit 141caa611c

View File

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