mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-19 01:30:16 +00:00
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)
|