I need this in c++. My phone, it’s stuck! It doesn’t seem to rotate anymore. I have this multidimensional array whose values I need to rotate in order to properly decipher. If it doesn’t rotate 90 degrees clockwise, then I’m in big trouble! Help! Input 1. Number of rows of the multidimensional array 2. Number of columns of the multidimensional array 3. Elements of the multidimensional array Output The first line will contain a message prompt to input the number of rows. The second line will contain a message prompt to input the number of columns. The succeeding lines will prompt for the elements of the multidimensional array. The last lines will contain the multidimensional array rotated 90 degrees clockwise.
I need this in c++.
My phone, it’s stuck! It doesn’t seem to rotate anymore. I have this multidimensional array whose values I need to rotate in order to properly decipher. If it doesn’t rotate 90 degrees clockwise, then I’m in big trouble! Help!
Input
1. Number of rows of the multidimensional array
2. Number of columns of the multidimensional array
3. Elements of the multidimensional array
Output
The first line will contain a message prompt to input the number of rows. The second line will contain a message prompt to input the number of columns. The succeeding lines will prompt for the elements of the multidimensional array. The last lines will contain the multidimensional array rotated 90 degrees clockwise.
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps with 4 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Can I have the output to look like this?
![Enter the number of rows: 3
Enter the number of columns: 4
3624
9 3 2 1
5 3 2 1
Rotated:
593
3 36
22 2
1 1 4](https://content.bartleby.com/qna-images/question/7614457a-66a5-4039-ae56-b44539635a0e/ad477fa2-75fa-4206-be98-90ee784ca666/on0eop8_thumbnail.png)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)