%-------------------------------------% % Homework 7: p.1 % % Date: 11/11/2002 % % % % Gun Srijuntongsiri % % gs61 % % ?????? % %-------------------------------------% % Variables: % sze = size of the triangle % i,j = indices of loops, i for each line, j for each asterisk % Ask for the size of triangle sze = input('Please enter the size of the triangle: '); % For each line i,... for i=1:sze % Print i number of '*' for j=1:i fprintf('*'); end fprintf('\n'); end