Program to print following pattern.
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5

 

Sample Input
Enter the number of lines required: 5
Sample Output
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5

You may also like...