
Hi sir, Can you please tell me how to output this using nested for loops?
1 2, 1 1, 2, 3 4, 3, 2, 1 1, 2, 3, 4, 5 6, 5, 4, 3, 2, 1 1, 2, 3, 4, 5, 6, 7 8, 7, 6, 5, 4, 3, 2, 1 1, 2, 3, 4, 5, 6, 7, 8, 9 10, 9, 8, 7, 6, 5, 4, 3, 2, 1

Sorry the correct way i need is,
1 (Start a new line)2, 1 (Start a new line)1, 2, 3 (Start a new line)4, 3, 2, 1 (Start a new line)1, 2, 3, 4, 5 (Start a new line)6, 5, 4, 3, 2, 1 (Start a new line)1, 2, 3, 4, 5, 6, 7 (Start a new line)8, 7, 6, 5, 4, 3, 2, 1 (Start a new line)1, 2, 3, 4, 5, 6, 7, 8, 9 (Start a new line)10, 9, 8, 7, 6, 5, 4, 3, 2, 1
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.