aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301/wk3/lab3/multTable.cpp
blob: 5201c07da473f39253c71a5406400b06b4fc063f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream>
using namespace std;
int main() {
  int row=1, column=1;
  for (row; row<=10; row++) {
    for (column=10; column>0; column--) {
      int temp = row*column;
      if (temp!=100) {
        cout << " ";
      }
      if (temp<10) {
        cout << " ";
      }
      cout << temp;
    }
  cout << endl;
  }
}