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