Print square of each element of r x c matrix

Print square of each element of r x c matrix


Implementation:

Input:

1 2
3 4

Output:

1 4
9 16