forked from tdwojak/Python2017
commited tasks
This commit is contained in:
parent
4480bb891e
commit
141caa611c
@ -7,7 +7,13 @@ przez 3 lub 5 mniejszych niż 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):
|
||||
inputs = [[10], [100], [3845]]
|
||||
|
Loading…
Reference in New Issue
Block a user