Please help if you can.
Print the following patterns using nested loops. Output should be in separate programs.
Pattern 1
1
12
123
1234
12345
123456
Pattern 2
123456
12345
1234
123
12
1
Pattern 3
1
21
321
4321
54321
654321
Pattern 4
123456
12345
1234
123
12
1