

Pattern for N = 2
0
101
21012
The first line of input contains an integer ‘T’ denoting the number of test cases. And each test case follows:
Each test case contains an integer ‘N’ representing the number of rows.
Each test case print 'N' strings denoting the required pattern of integers for a given integer ‘N’.
The output of each test case will be printed on a separate line
1 <= T <= 5
1 <= N <= 100
Time Limit: 1 sec.
The idea is to use nested iterations for generating spaces and the digits inside the pattern.
Number of Digits
Matrix Boundary Traversal
Star Triangle
Print Fibonacci Series
Print Fibonacci Series
Print Fibonacci Series
Print Fibonacci Series
Print Fibonacci Series
Print Fibonacci Series
Inverted Left Half Pyramid