Skip to main content
Mod Removes Wiki by C. K. Young
golfed 2 chars off
Source Link
nrz
  • 253
  • 1
  • 8

MATLAB/Octave, n first numbers, 4141 39 chars

a=[0 1];fora=0:1;for(i=3:n);a(i)=a(i-2)+a(i-1);end

MATLAB/Octave, n first numbers, 41 chars

a=[0 1];for(i=3:n);a(i)=a(i-2)+a(i-1);end

MATLAB/Octave, n first numbers, 41 39 chars

a=0:1;for(i=3:n);a(i)=a(i-2)+a(i-1);end
Source Link
nrz
  • 253
  • 1
  • 8

MATLAB/Octave, n first numbers, 41 chars

a=[0 1];for(i=3:n);a(i)=a(i-2)+a(i-1);end