08/24/2011 03:59 by justsharon
How to write a C++ program that outputs the multiplication table? can anyone help this:
include <iostream>
using namespace std;
int table;
int main()
{
cout << "Multiplication Table: ";
cin >> table;
cout << setw(8) << n;
for (int i=1; i <= 100; ++i)
cout << left << setw(9) << i;
for (int i=1; i <= 10; ++i)
{
cout << setw(7);
for (int j=1; j <= 10; ++i)
cout << setw(9) << i*j;
cout << endl;
}
return(0);
}
Added Successfully!
×Voted Successfully!
×You can't vote for yourself
×You can't choose your own answer
×