n = 30; %use any number you like for u
fprev = 0;
fcurr = 1;
while fcurr <= n
	fprintf('%i ', fcurr);
	temp = fcurr;
	fcurr = fcurr + fprev;
	fprev = temp;
end
fprintf('\n');
