%% Specify for-loop Iterations
% In the context of a for-loop, the colon specifies the loop iterations.
% Write a for-loop that squares a number for values of n between 1 and 4.

for n = 1:4
    n^2
end

% Copyright 2012 The MathWorks, Inc.