Question: Follow the instructions for starting C++ and viewing the Introductory22.cpp file, which is contained in either the Cpp8Chap12 folder. (Depending on your C++ development tool,
Follow the instructions for starting C++ and viewing the Introductory22.cpp file, which is contained in either the Cpp8\Chap12 folder. (Depending on your C++ development tool, you may need to open the project/solution file first.) The program should display the contents of the two-dimensional array, column by column and also row by row. Complete the program using a while statement in the outer loops and a for statement in the nested loops. Save and then run the program.
Example program:
//Introductory22.cpp - displays the contents of a //two-dimensional array, column by column and row by row //Created/revised by
#include
int main() { int nums[2][4] = {{17, 24, 86, 35}, {23, 36, 10, 12}};
//display column by column
cout << endl; //display row by row
return 0; } //end of main function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
