#include <iostream>
usingnamespace std;
int main()
{
int number = 0;
cout <<"Please enter a number: ";
cin >> number;
for (int n = 1; n<=10; n++){
cout <<n <<" x " <<number <<" = " <<(n*number) <<endl; //the given number will be multiplied for 1 to 10
}
system ("PAUSE"); //if you are compiling with windows, otherwise it won't compile
return 0;
Please enter a number: 6
1 x 6 = 6
2 x 6 = 12
3 x 6 = 18
4 x 6 = 24
5 x 6 = 30
6 x 6 = 36
7 x 6 = 42
8 x 6 = 48
9 x 6 = 54
10 x 6 = 60