photo

Tasbiha Azeemi


Active since 2018

Followers: 0   Following: 0

Message

Statistics

  • First Answer

View badges

Feeds

View by

Answered
Fibonacci Sequence while loop.
Try this one! function a=fabonacciSeq(n) a(1)=0; a(2)=1; i=1; while i<=n a(i+2)=a(i+1) +a(i); i=i+1; end...

6 years ago | 0

Answered
For loop fibonacci sequence
Try this one!!! function a=FabonacciSequence(n) a(1)=0; a(2)=1; for i=1:n; a(i+2)=a(i+1)+a(i) end end

6 years ago | 0