I need a program in c++ that will enter a limit of the loop. using nested for loop with a limit of 3 loops only.
like this !
for (){
for (){
for (){
cout
}
}
}
Sample output:
Enter a number : 3 [enter]
1 2 3
4 5 6
7 8 9
2 3 4
5 6 7
8 9 10
3 4 5
6 7 8
9 10 11