forked from tdwojak/Python2018
zrobione
This commit is contained in:
parent
a4b330b3b0
commit
56c08684b9
@ -8,9 +8,8 @@ przez 3 lub 5 mniejszych niż n.
|
||||
|
||||
def sum_div35(n):
|
||||
suma = 0
|
||||
i=1
|
||||
for i in range(n-1):
|
||||
if (i%3 or i%5):
|
||||
if (i%3==0) or (i%5==0):
|
||||
suma = suma + i
|
||||
|
||||
return suma
|
||||
|
Loading…
Reference in New Issue
Block a user