% timesTable: Print a times table for the specified range.
% Assumes that all range values are < 100.

% Written by Paul Chew for CS100M, Feb 2006

low = input('Low value: ');
high = input('High value: ');
fprintf('%5s', ' ');
for col = low:high
    fprintf('%5d', col);
end
fprintf('\n');
for row = low:high
    fprintf('%5d', row);
    for col = low:high
        fprintf('%5d', row*col);
    end
    fprintf('\n');
end