Fibonacci Sequence For Loop
조회 수: 2 (최근 30일)
이전 댓글 표시
Write a script which calculates F(20). Using a for loop. At any given time you need only store the three active members of the sequence say F_Curr, F_Old, F_Older, which you will 'shuffle' appropiately. Refer to your current count as 'F_curr'
댓글 수: 2
James Tursa
2021년 2월 16일
What have you done so far? What specific problems are you having with your code?
답변 (1개)
Jemima Pulipati
2021년 2월 18일
Hello,
From my understanding, you want to generate Fibonacci series using three variables inside a for loop.
The following answers from the community might be of relevance to you.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!