Question: 1.Code a statement that populates a two-dimensional array named iNums with the values above using shortcut notation. Use the values above. 2.Code a statement to
1.Code a statement that populates a two-dimensional array named iNums with the values above using shortcut notation. Use the values above.
2.Code a statement to display the value stored in iNums[0][0].
3.Code a statement to display the value stored in iNums[2][2].
4.Code the statements needed to display the number of rows and columns in the array as follows:
Rows: 2
Cols: 3
5.Code a statement that adds 5 to the value stored in iNums[1][2].
6.Code the second value in the first row and the last value in the second row to the variable iSum.
7.Code all values in the second row to the variable, iRowTotal.
8.Code the values in the second column to the variable iColTotal.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
