done
This commit is contained in:
parent
7cc01637fb
commit
c941f0f6ac
@ -7,7 +7,12 @@ przez 3 lub 5 mniejszych niż n.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def sum_div35(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):
|
def tests(f):
|
||||||
inputs = [[10], [100], [3845]]
|
inputs = [[10], [100], [3845]]
|
||||||
|
Loading…
Reference in New Issue
Block a user