C++ Build Multiplication Table

email me
#include "stdafx.h"
#include <iostream>
#include <iomanip>

using namespace std;

int main() {
int i, j, table;
cout << "Enter multiplication table number: "; cin >> table;
cout << "\n";
getchar();
i = table;
j = table;

cout << "    ";
for (i = 1; i <= table; i++) {
for (j = 1; j <= table; j++) {
cout<<i*j<<setw(5);}
cout<<endl;
}
getchar();
return 0;
}

Output