Computer Science, asked by prafulkamble580, 1 year ago

Program to find the sum of first n numbers which are either multiple of 3 or 5.

Answers

Answered by F1U2C3K4
0
Hey buddy, here is your code

________________________

total_sum = 0

for i in range(1000):

if (i%3 == 0 or i%5 == 0):

total_sum = total_sum+i

print total_sum

Don't forget to try it yourself ;-)
Similar questions