1 1
2 2
3
2 2
1 1
The first line of input contains an integer ‘T’ denoting the number of test cases. The test cases follow.
The first line of each test case contains a single integer ‘N’.
For each test case, print every row in a new line (row elements not separated by space)
Print the output of each test case in a separate line.
You are not required to print the expected output; it has already been taken care of. Just implement the function.
1 <= T <= 50
1 <= N <= 1000
Time Limit: 1 sec
The idea is to use nested loops in such a way that yields the answer.
The steps are as follows:
Print Name
Print Name
Print Name
Print Name
Print Name
Matrix Boundary Traversal
Star Triangle
Count Repeating Digits
Inverted Left Half Pyramid