summaryrefslogtreecommitdiff
path: root/Problem1.py
blob: f3ccb787f0d6265893bf23f036592305b96d5cdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# a, b  = 0, 1
# while a < 10:
#     print(a)
#     a, b = b, a+b
#print(sum(range(8)))

def isMultiple(n):
    if (n % 3 == 0) or (n % 5 == 0):
        return True
    else: 
        return False
count = 0
for n in range(0,1000):
   if isMultiple(n):
       count = count + n
print(count)