08/24/2011 08: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);
}
How do you code this???????
You will create a math game to help people hone their math skills. When the game is executed, it will ask the user if they want to practice their addition, subtraction, multiplication or division skills. Once a skill is selected, the user is asked for a range of numbers they wish to practice. As an example, I can input a "-" to practice subtraction. I then can input the numbers 10 and 20 to practice subtraction using numbers between 10 and 20 inclusive of 10 and 20.
All numbers must be positive integers. All subtraction problems must result in positive answers and all division problems must result in answers with a zero remainder.
Added Successfully!
×Voted Successfully!
×You can't vote for yourself
×You can't choose your own answer
×