clear; clc;

f = fopen('table.txt', 'w');
for j = 1 : 9
    for i = 1 : 9
        fprintf(f, '%3d', j * i);
    end
    fprintf(f, '\n');
end
fclose(f);
