close all; clear; clc

x = zeros(6);

[rows, cols] = size(x);

% stop = false;

for i = 1:rows
    for j = 1:i
        if i * j > 15
            % stop = true;
            break
        end
        x(i, j) = i * j;
    end
    % if stop
    if i * j > 15
        break
    end
end

disp(x)