BETA
School Problem's Submission isn't counted in score!

Submissions: 1203 Accuracy:

41.06%

Number Pattern
     

For a given number N. Print the pattern in the following form: 1 121 12321 1234321 for N=4.

Input:
First line of input contains the test cases T. Each line of test case contain the value of N for which the pattern is to be displayed.

Output:
For each value of N, print the pattern in a single line.

Constraints:
1<= T <=10
1<= N <= 20

Example:
Input:

2
3
6

Output:
1 121 12321
1 121 12321 1234321 123454321 12345654321

** For More Input/Output Examples Use 'Expected Output' option **

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.