1
0
forked from tdwojak/Python2018
This commit is contained in:
Justyna Adamczyk 2018-05-23 17:41:29 +00:00
parent a4b330b3b0
commit 56c08684b9

View File

@ -8,9 +8,8 @@ przez 3 lub 5 mniejszych niż n.
def sum_div35(n): def sum_div35(n):
suma = 0 suma = 0
i=1
for i in range(n-1): for i in range(n-1):
if (i%3 or i%5): if (i%3==0) or (i%5==0):
suma = suma + i suma = suma + i
return suma return suma