1
0
forked from tdwojak/Python2018

Update 'labs02/task08.py'

This commit is contained in:
Andrea Góralczyk 2018-06-02 20:00:58 +00:00
parent 9b66c64e59
commit 4a42679729

View File

@ -7,7 +7,15 @@ przez 3 lub 5 mniejszych niż n.
""" """
def sum_div35(n): def sum_div35(n):
pass
if n == 0:
return 0
else:
suma=0
for i in range(n):
if ((i%3) == 0) or ((i%5) == 0):
suma =suma + i
return suma
def tests(f): def tests(f):
inputs = [[10], [100], [3845]] inputs = [[10], [100], [3845]]