write a program to display the following patterns:1 2 3 4 52 3 4 53 4 ...

write a program to display the following patterns:1 2 3 4 52 3 4 53 4 ...

More to explore

Based on this image's title: “write a program to display the following patterns:1 2 3 4 52 3 4 53 4 ...