Skip to main content
Code Review

Return to Question

Commonmark migration
Source Link

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:

1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...

By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:

1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...

By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:

1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...

By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.

Added java-8 tag
Link
skiwi
  • 10.7k
  • 6
  • 44
  • 108
No need to post these update notices. They can just stay in the edit description.
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238

Edit, updated the question to include all code.

Second edit, I have updated my code once more, as nobody has commented/answered on the code itself yet, and I have made updates meanwhile.

Edit, updated the question to include all code.

Second edit, I have updated my code once more, as nobody has commented/answered on the code itself yet, and I have made updates meanwhile.

updated code once more
Source Link
skiwi
  • 10.7k
  • 6
  • 44
  • 108
Loading
included all code
Source Link
skiwi
  • 10.7k
  • 6
  • 44
  • 108
Loading
Source Link
skiwi
  • 10.7k
  • 6
  • 44
  • 108
Loading
lang-java

AltStyle によって変換されたページ (->オリジナル) /