
e/\e
/oo\
\oo/
e\/e
The above diagram represents a grid of 1 Row and 1 Column and a diamond of size 2 in its single cell(i.e. each side of the diamond has length 2).
First-line contains ‘T’, denoting the number of Test cases.
For each Test case:
The first line contains three space-separated integers, ‘r’,’c’ and ’s’, where ‘r’ represents the number of rows, ‘c’ represents the number of columns and ‘s’ represents the size of each diamond.
For each test case, you have to print the desired pattern(i.e.- a grid that has ‘r’ rows and ‘c’ columns of size ‘s’ diamond).
1 <= ‘T’ <= 10
1 <= ‘r’ & ‘c’ <= 100.
1 <= ‘s’ <= 10
Time Limit: 1 sec
Algorithm: