// Print out a multiplication table for 0 - 10 x 0 - 10 // rows will run from 0 - 10 // columns will run from 0-10 // entries in the table will be the product #include int main() { int row, col, i; // column header cout << " "; for (col=0;col<=10;++col) cout << setw(4) << col; cout << endl; cout << " "; for (i=1; i<=45; ++i) cout << "-"; cout << endl; // print out columns and rows for (row=0;row<=10;++row) { // row header cout << setw(2) << row << " |"; // print out row for (col=0;col<=10;++col) { cout << setw(4) << row * col; } cout << endl; } }