Given the value of n, print the pattern.
Input : n = 5 Output : 0 101 21012 3210123 432101234 Input : n = 7 Output : 0 101 21012 3210123 432101234 54321012345 6543210123456
Below is the program to print the above pattern
0 101 21012 3210123 432101234
- Program to print mirror image of Swastika Pattern
- Program to Print Mirror Image of Sine-Wave Pattern
- Program to print Lower triangular and Upper triangular matrix of an array
- Hollow lower triangular pattern
- Print lower triangular matrix pattern from given array
- Program for triangular patterns of alphabets
- Recursive program to print triangular patterns
- Program to check if matrix is lower triangular
- Program to check if matrix is upper triangular
- Program to determine focal length of a spherical mirror
- Program to print the pattern "GFG"
- Program to print the given H Pattern
- Program to print the pattern 'G'
- Program to print the pattern ‘D’
- Program for Hexagonal Pattern
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
Improved By : Mithun Kumar