Question: CIS 22B Lab2 part A CIS 22B: Homework 2A 2D Arrays This program prints a 2D array as a table, one row per line It

CIS 22B Lab2 part ACIS 22B Lab2 part A CIS 22B: Homework 2A 2D Arrays This

CIS 22B: Homework 2A 2D Arrays This program prints a 2D array as a table, one row per line It compiles and runs, but it provides an unexpected output Find and fix the errors. Run the progran and save the output as a comment at the end of the program NAME #include iostream using namespace std; const int ROS 10; // maximum number of rows const int COLS 5; // maximum number of columns Gint main (void) int table [ROWS] [COLS] = 1111, 9e, 58, 68, 28), 1222, 15, 25, 45, 35], 1333, 49, 89, 29, 59, [444, 82, 92, 52, 22) 1i int n-rows = 4; // actual number of rows int n_cols 5; // actual number of columns // print the table for( int r = 0; r

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!