sum of the even numbers in the fibonacci sequence
Hello, im trying to make a code that calculate the sum of the even numbers of the fib sequence up to the 10th number (for now). The problem i have at the moment is figuring out how to make it calculate the sum, im assuming the problem in in line 21 where i wrote the supposed command for the sum of the even number. Any help would be appreciated.

9 Replies
Do the math by hand
I'm not sure why you're trying to make a nested loop in this. Assuming
s
is your sum, check if the current fibonacci number is even and add it to your sum if it is.dotnet add package IsEven --version 5.0.0
IsEven 5.0.0
A robust, extensible, and blue-sky-thinking .NET library for calculating if a number is even.
don't actually use this
:Troll:
This should be illegal
It is in 3 states