Question: c++ program Write a function that takes a 2D array as a parameter, and rotate it by 90 degrees. The 2D array should have equal
c++ program
Write a function that takes a 2D array as a parameter, and rotate it by 90 degrees. The 2D array should have equal number of rows and columns (similar to a square matrix). 1234 4 0 62 9 02 3 456 62 84 In the main function you can ask the user to enter the dimension (the dimension here is only one integer since the 2D array has the same number of rows and columns), and inside your code you can set a maximum of 10x10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
