More seriously, approach the problem step by step. Try to write code to generate just the first line.
Use a
for
loop to do that. Post your attempt at that here if it gives you trouble, and someone will help where necessary
After that, consider a second
for
loop which will generate just the first column.
Hint, it will look very similar to the first, except for a newline.
Again, if that gives you trouble, post your attempt here and someone will try to help.
The final step is to combine the two. But don't worry about that till later.
You can learn about loops in the tutorial here:
http://www.cplusplus.com/doc/tutorial/control/