Computer Science, asked by 1805620, 1 month ago

Given a Square Matrix of size M x M. Write a Program to print the matrix when it is Rotated Anticlockwise N Times First line of the test case consists of 2 Integers M&N. M represents the size of the square matrix, while

Input:


Second line of every test case consists of MM space separated integers

Output:

Single line output, print the M'M spaced integer rotated N times Input.
2 1
1 2 3 4
Output
2 4 3 1
Explanation 1 2
3 4. Rotated by 1 time by90 degree will give au 2 4
3 4

Answers

Answered by Anonymous
0

Answer:

Explanation:

There will be the separation of thr output of first explanation are 2431,314.

And the second explanation are:423.

Similar questions