
I need a code of this in C language.
Input
1. Number of rows
Constraints
The value is guaranteed to be >= 3 and <= 100.
Sample
2. Number of columns
Constraints
The value is guaranteed to be >= 3 and <= 100.
Sample
3. Elements
Description
The elements of the multidimensional array depending on the number of rows and columns
Constraints
All elements are non-negative and are all less than 100.
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 contain message prompts for the elements of the multidimensional array. Lastly, a blank line is printed before the rotated 90-degrees anti-clockwise 2D array.
For example this should be the output.
Enter the number of rows: 3
Enter the number of columns: 3
Row #1: 1 2 3
Row #2:·4 5 6
Row #3: 7 8 9
3 6 9
2 5 8
1 4 7

Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 2 images

I need a version of this question but performed clockwise instead of anti-clockwise. Thank you!
I need a version of this question but performed clockwise instead of anti-clockwise. Thank you!
- Code in Perl Create an array which holds a list of Video Games, consisting of title, the year it was released (guess if you don’t know) , platform (NES, XBOX One, etc) and publisher (in that order). Add at least ten albums to the list. Then, use the split function and a for or foreach loop to display the publisher followed by the title and platform for each list element.arrow_forwardJavaarrow_forwardASSEMBLY It is preferable to pass Arrays by reference when calling subroutines. True Falsearrow_forward
- This is loosely based on a program in Python for a sub-list sorting program. What are the coupling and cohesion levels in each function block in this structure chart, and explain what makes them that type of coupling and cohesion:.arrow_forwardc++ programming Initialize a string array named person with your first, middle andlast name as separate elements. Print the middle name from the array. Iterate to print all values of the array. Output Example WilliamJohn William Henryarrow_forwardAlphabet Random Walk• Write a program to generate a random walk that spans a 10*10 character array (The initial values of the elements are all.). The program must randomly walk from one element to another, moving one element position up, down, left or right each time. The elements that have been visited are labeled with the letters A through Z in the order in which they were visitedarrow_forward
- C code that prints the elements of a 5 * 4 integer array whose elements are generated randomly.arrow_forwardWrite a function to determine the resultant force vector R of the two forces F₁ and F2 applied to the bracket, where 0₁ and 0₂. Write R in terms of unit vector along the x and y axis. R must be a vector, for example R = [Rx, Ry]. The coordinate system is shown in the figure below: F₁ y 0₂ 0₁ 1 ►x F2arrow_forwardGame of Hunt in C++ language Create the 'Game of Hunt'. The computer ‘hides’ the treasure at a random location in a 10x10 matrix. The user guesses the location by entering a row and column values. The game ends when the user locates the treasure or the treasure value is less than or equal to zero. Guesses in the wrong location will provide clues such as a compass direction or number of squares horizontally or vertically to the treasure. Using the random number generator, display one of the following in the board where the player made their guess: U# Treasure is up ‘#’ on the vertical axis (where # represents an integer number). D# Treasure is down ‘#’ on the vertical axis (where # represents an integer number) || Treasure is in this row, not up or down from the guess location. -> Treasure is to the right. <- Treasure is to the left. -- Treasure is in the same column, not left or right. +$ Adds $50 to treasure and no $50 turn loss. -$ Subtracts…arrow_forward
- A single dimensional array might be treated as a 2-dimensional array.arrow_forwardWhat advantages do arrays possess? An array can only have a certain amount of dimensions. What makes variables different from other kinds of structures? Would you mind giving an example of a more complex data structure?arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





