Skip to content

Commit

Permalink
Correction: File solv3.py
Browse files Browse the repository at this point in the history
I have remove some semicolons. line 11, 12 and 42
  • Loading branch information
Christian Bender authored Nov 19, 2017
1 parent 567f2ad commit a5c954f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Project Euler/Problem 01/sol3.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
This solution is based on the pattern that the successive numbers in the series follow: 0+3,+2,+1,+3,+1,+2,+3.
'''
n = int(raw_input().strip())
sum=0;
num=0;
sum=0
num=0
while(1):
num+=3
if(num>=n):
Expand Down Expand Up @@ -39,4 +39,4 @@
if(num>=n):
break
sum+=num
print sum;
print sum

0 comments on commit a5c954f

Please sign in to comment.