Number Pattern in Java - using for loop

Опубликовано: 29 Июнь 2026
на канале: Shake Hands with Programming
366
12

We'll make a program using nested for loop to print the following pattern:
1
1 2 1
1 2 3 2 1
1 2 1
1

In this case n=3, we can change the value of n according to the given problem statement.

Feel free to post your queries and doubts in the comment section below...Just hope you are able to understand the logic and concept, please give some suggestions for improvement...Thankyou everyone ♡♥♡...!!!