n=input(' Index of Fibonacci number = ');   % p23_fibw.m
f=zeros(n,1);
f(1)=1;                   
f(2)=1;
i=2;
while (i< n);
 i=i+1;
 f(i) = f(i-1)+f(i-2);
end
fprintf('Fibonacci(%d) = %d \n',n,f(n));
