I need to create a nested loop that does the flowing:
The outer loop will count from 1 to 5. The inner loop will count from 1 to 6 and write the product of the outer loop counter multiplied by the inner loop counter, all on the same line with one tab (â\tâ) between. Between the loop ends put a line feed (endl or \n). The result should look like this:
1 2 3 4 5 6
2 4 6 8 10 12
3 6 9 12 15 18 etc,
I have looked in the forums but did not see anything like this. If anyone can help me I would appreciate it. Thank you for your time.
Randy