Python program to find the multiples of 3 and 5 in below 1000

sum=0
for i in range(1000):
    if i%3==0 or i%5==0:
        sum+=i
print(sum)
0
Subscribe to my newsletter

Read articles from Varjinth subramaniyan directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Varjinth subramaniyan
Varjinth subramaniyan