forked from tdwojak/Python2018
Update 'labs02/task08.py'
This commit is contained in:
parent
9b66c64e59
commit
4a42679729
@ -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]]
|
||||||
|
Loading…
Reference in New Issue
Block a user