clear; clc;

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