Skip to content

Commit 8d9da8f

Browse files
author
Christian Bender
authored
Correction: File solv01.py
I have remove some semicolons.
1 parent a5c954f commit 8d9da8f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: Project Euler/Problem 02/sol1.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88
'''
99

1010
n = int(raw_input().strip())
11-
i=1; j=2; sum=0
11+
i=1
12+
j=2
13+
sum=0
1214
while(j<=n):
1315
if((j&1)==0): #can also use (j%2==0)
1416
sum+=j
1517
temp=i
1618
i=j
1719
j=temp+i
18-
print sum
20+
print sum

0 commit comments

Comments
 (0)