|
Oktatás * Programozás 1 * Szkriptnyelvek Teaching * Programming 1 (BI) Félévek Linkek * kalendárium |
Nim2 /
Fibonacci sequenceThe next element of the Fibonacci sequence is obtained by taking the sum of the previous two elements of the sequence. If the sequence starts with the values 1 and 2, then the first 10 elements of the sequence are as follows: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, … What is the sum of the even elements of the sequence that are less than 3 million? NimTry to generate the elements of the Fibonacci sequence with an iterator. |
![]() Blogjaim, hobbi projektjeim * The Ubuntu Incident [ edit ] |