Fibonacci Sequence For Loop
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
James Tursa
le 16 Fév 2021
What have you done so far? What specific problems are you having with your code?
Réponses (1)
Jemima Pulipati
le 18 Fév 2021
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 commentaires
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!