Ok, I think I pretty much have the majority of it down. All I need to do is add the multiples of each number to the chart, but I'm having a little trouble. * Noob *
Code:
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
int i,t,max,maxA;
cout << "Enter max number " << endl;
cin >> max;
cout << " x |";
for (i=1; i<=max; i++)
{
cout <<i<< setw(3);
}
cout<< endl;
cout << " -------------------------------";
cout << endl;
for (i=1; i<=max; i++)
{
cout << " "<<i*max<< setw(3);
}
for ( i =1; i<=max; i++)
{
cout <<i<<"|"<< endl;
}
system("Pause");
return 0;
}
Also, what is a better option than using "systemPause" ?