#include using namespace std; void print_one_number(const int value) { if (value >= 100) cout << " "; else if (value >= 10) cout << " "; else cout << " "; cout << value; } void print_one_row(const int row, const int size) { int column = 1; while (column <= size) { const int value = row * column; print_one_number(value); column = column + 1; } cout << "\n"; } void print_table(const int size) { int row = 1; while (row <= 12) { print_one_row(row, size); row = row + 1; } } int main() { int size; cout << "Enter the size of the table: "; cin >> size; print_table(size); }