DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
sum of all multiples of 3 and 5 below 100
c = list(range(1,100)) total = 0 for i in (c): if i % 3 == 0 or i % 5 == 0: total += i print (total)
PREVIOUS
NEXT
Tagged:
#sum
#multiples
ADD COMMENT
Topic
COMMENT
Name
6+5 =
Submit