Saturday, September 26, 2020

sum of multiples of 5 or 3 for less than 100 in Python

total = 0

for j in range(1,100):

    if j % 3 == 0 or j % 5 == 0:

        total += j

print(total)

No comments:

Post a Comment

What If They Misunderstood You? ❤️ | How I Handle Misunderstandings

https://youtube.com/shorts/I09jcicjGnA   Right. [clears throat] So I want to share that over the time I have realized that you there is a hi...