Opening the reading…
Opening the reading…
PROGRAMMING FUNDAMENTALS › C++ FUNDAMENTALS
This is a scratch drill — your code runs, nothing is graded or recorded. No test cases, no expected output, no verdict.
TASK
Declare the given 2 by 3 marks array. Use nested loops to print its two rows, change marks[1][2] from 3 to 8, and pass the changed array to a total function whose parameter uses a column extent of 3. Print the total after the change.
OUTPUT
Sample4 2 7 1 5 3 27
What a finished answer prints, from the lesson. Nothing has run yet — press Run and this is replaced by your program’s own output.