Sorry, I don't think any of us understood you the first time, you probably should have told us in the first place Ok, here's an idea:
to input, use cin:
Code:
int input;
cin >> input; // now input contains whatever the guy typed.
Here's a idea:
Code:
for(int i = 0; i < input; ++i) //execute this loop (input) times
{
for(int n = 0; n <= i; ++n)
{
cout << "6"; //print the 6's
}
cout << " * ";
for(n = 0; n < i; ++n)
{
cout << "6"; //print the 1st part of 6666...7
}
cout << "7 = "; //print the 7, then " = "
for(n = 0; n <= i; ++n)
{
cout << "4"; //print the 4's
}
for(n = 0; n <= i; ++n)
{
cout << "2"; //print the 2's
}
cout << endl; //new line
}
I just typed this up right now, might not work but it should be enough to get you started (if not finished). I really hope you learn something from this, instead of just copy/pasting like lots of people do.