Java program to generate pattern

Java program to generate pattern:


Hi guys….! In this article let’s learn how to generate a pattern.Usually a pattern is arrangement of symbols or numbers in a systematic order according to the requirement. In this program let’s see how to generate a pattern.
 1 2
 1 2 3
 1 2 3 4


1) Take the input from the user to generate the required pattern.
2) Declare one outer loop to count the lines.
3) Declare the inner loop to generate the proper numbers in each lines.
4) Jump to next line after every execution of inner loop.

Code goes here: