C Programming20785 marksPattern generation using arrays
Write a program to generate the following pattern of integers. ``` 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1 ```
Write a program to generate the following pattern of integers.
1
1 2 1
1 2 3 2 1
1 2 3 4 3 2 1
[5]
Looking at the pattern carefully: Each row i prints numbers from 1 to i, then back from i-1 to 1. --- --- --- Row (i) Increasing Part Decreasing Part Full Row --------------------------------------------------------- 1 1 (none) 1 2 1 2 1 1 2 1 3 1 2 3 2 1 1 2 3 2 1 4 1 2 3 4 3 2 1 1 2 3 4 3 2 1 5...