Https://ide.codingblocks.com/s/49561

https://ide.codingblocks.com/s/49561

Take N (number of rows), print the following pattern (for N = 4).

                   1 
                 2 3 2
               3 4 5 4 3
             4 5 6 7 6 5 4

Input Format:
Constraints:
0 < N < 10

after n=5, pattern becomes distorted.

Yes, that will happen when double digit numbers will start appearing in the pattern. It won’t be an issue while submitting the code if you’ve followed the instructions given in the question properly.