euler/e001.py
Correl Roush 5bbf86c6c3 Renaming exercise files so functions can be imported into other scripts
git-svn-id: file:///srv/svn/euler@31 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:10 +00:00

6 lines
110 B
Python

total = 0
for x in range(1000):
if (0 == x % 3) or (0 == x % 5):
total = total + x
print 'Answer', total