function lab4_noloop( num )
%LAB4_NOLOOP Lab4 printer without loop
%   Prints a pattern of stars for Lab4

%create top half
top = fliplr(triu(ones(num)*42));

%print all but last line of top half
disp(char(top(1:end-1,:)))

%create and print bottom half
disp(char(tril(ones(num)*42)))

end

