Skip to content

Instantly share code, notes, and snippets.

@janoulle
Created December 19, 2011 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janoulle/1498226 to your computer and use it in GitHub Desktop.
Save janoulle/1498226 to your computer and use it in GitHub Desktop.
Problem 1 - Project Euler in Python by Jane Ullah
x = 0
for i in range(0,1000):
if (i%3 == 0) or (i%5 == 0):
x += i;
print('total sum is: ' + str(x));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment