Question 3

Write code to rotate a square matrix:
Input:
1 2 3
4 5 6
7 8 9
Output:
4 1 2
7 5 3
8 9 6

KodNest Training New Batch is starting on 15th July 2020Check Now

New Report

Close