Write a script which finds N∗ such that FN∗ < 1000 and FN∗+1 ≥1000. Use a while loop. Note the “interior” block of your whileloop will be quite similar to the block of your for loop above butnow you must include a (say) Nstar_tmp variable which isinitialized outside the loop and incremented each time through theloop.
Fibonacci using matlab . Write a script which finds N∗ such thatFN∗ < 1000 and FN∗+1 ≥ 1000. Use a while loop. Note the“interior” block of your while loop will be quite similar to theblock of your for loop above but now you must include a (say)Nstar_tmp variable which is initialized outside the loop andincremented each time through the loop.
Expert Answer
Answer to Write a script which finds N∗ such that FN∗ < 1000 and FN∗+1 ≥ 1000. Use a while loop. Note the “interior” b...