If you're truly lost, and can't even figure out how to start, here goes -
1. Write some code for generating the multiplication tables up to, say, 5*5 = 25.
I'm assuming you can do this, if you've been flying through your programming class. It's an example of a very basic "for" loop.
And cire may be correct about what you want not actually being a table, but let's agree to keep calling it that anyway, simply as a convenient verbal shorthand for the purposes of this thread.
Post the resulting code here. Make sure it's properly formatted and nicely commented. These are good habits to develop, right from the start.
2. Now, revise your code so that instead of displaying up to 5*5, it instead displays up to n*n, where n is a value chosen by the user.
This shouldn't be too difficult for you. It's a pretty basic example of:
1 2 3
|
std::cout << "How high should I go?: ";
int n;
std::cin >> n;
|
Post the resulting code to this thread.
3. Revise your code so as to check and make sure that the program doesn't display any particular pair of numbers twice. There are various ways to accomplish this.
4. Finally, tweak your code so that the output is displayed nicely and neatly, with blank lines where you want them and so forth.
This technique - of first writing code for a simplified version of the problem, and then incrementally revising that code so as to address the requirements which add complexity to the problem - is often quite useful. And it reflects how many real life, non-programming tasks are tackled.