Answers for "octave for loop"

1

octave for loop

#Fibonacci calculator
fib = ones (1, 10);
for i = 3:10
  fib(i) = fib(i-1) + fib(i-2);
end
Posted by: Guest on January-22-2021

Browse Popular Code Answers by Language