% -----------------------------------------------------
% forloopdisplaycount.m
% -----------------------------------------------------
% Write a program that asks the user for a starting count,
% an ending count and displays all the integers from one to 
% the other. 
% -----------------------------------------------------
% Notes: Use a for loop
% -----------------------------------------------------
% Copyright and license details available at matlabmarina.com
%------------------------------------------------------

clear
clc

% Read in start and end count from user 
startCount = input('Enter number to start count at: '); 
endCount = input('Enter number to count to: ');  

% Display count using a for loop
for count = startCount:1:endCount 

 disp(count); 

end