2. Even Fibonacci Numbers
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.-피보나치 설명 블라블라- Generate 2 value A,B-A,B는 매번 새 값 넣어줘야함 (전값,더한값)- A 항 자체가 숫자넘지않도록 (bellow는 미만이지만 d..
2024. 11. 7.