Number Pattern in Java - using while loop

Опубликовано: 03 Июль 2026
на канале: Shake Hands with Programming
10,722
110

We'll make a program using nested while loop to print the following pattern:
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5....
In this case n=5, we can also 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 ♡♥♡...!!!