i = 1;

while i < 10
   fprintf('i = %.0f\n', i);
   i = i + 1;
end

disp('End while loop');

clear

for i = 1:9 
   fprintf('i = %.0f\n', i);
end

disp('End for loop');
