mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-18 09:10:16 +00:00
dd62f1b802
added a solve for the problem
9 lines
112 B
Python
9 lines
112 B
Python
a=3
|
|
result=0
|
|
while a=<1000:
|
|
if(a%3==0 and a%5==0):
|
|
result+=a
|
|
elif(a%15==0):
|
|
result-=a
|
|
print(result)
|