Skip to content

Commit 28f148c

Browse files
committed
added: 103-fibonacci.c
1 parent 804c0f2 commit 28f148c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

0x02-functions_nested_loops/103-fibonacci.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ int main(void)
1717
sum = firstNum + secondNum;
1818
firstNum = secondNum;
1919
secondNum = sum;
20-
if (sum % 2 == 1)
20+
if (sum % 2 == 0)
2121
{
2222
evenSum = evenSum + sum;
2323
}

0 commit comments

Comments
 (0)