Help with a simple exercise
显示 更早的评论
In this exercise Im asked to show the Fibonacci numbers < 100... but when I run the program it shows me one > 100 (the 144), The 144 can't be there, what can I do? (Sorry for my english)
Here is what I got:
F(1)= 1; F(2)= 1;
n= 3; c= 0;
while c < 100;
F(n)= F(n-1) + F(n-2);
c= F(n);
n= n+1;
end
F
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Sequences of Numbers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!