% -----------------------------------------------------
% forloop_writeNtimes.m
% -----------------------------------------------------
% Write a program that displays given statement N times.   
% -----------------------------------------------------
% Notes: use a for loop. 
% -----------------------------------------------------
% Copyright and license details available at matlabmarina.com
%------------------------------------------------------

% Clear all variables and clear the command window
clear 
clc

% Define N
N = 10;

% for loop with counter k; k starts at 1, has an increment of 1 and 
% ends at N (k=1,2,3,..,N). 
for k = 1:1:N
    
    % Display statement on command window
    disp('With a little hard work, any engineer can learn MATLAB');
    % Use single quotes ' ' for strings 
    
end
