find the sum of all the multiples of 3 or 5 below 1000 python
nums = [3, 5]
result = 0
for i in range(0,1000):
if i%3 == 0 or i%5 == 0:
result += i
print(result)
find the sum of all the multiples of 3 or 5 below 1000 python
nums = [3, 5]
result = 0
for i in range(0,1000):
if i%3 == 0 or i%5 == 0:
result += i
print(result)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us