Question: Exercise 4-2 Write a program that, given a two-dimensional array of numbers, prints the top-right to lower-left diagonal of the array. Assume that the width

Exercise 4-2 Write a program that, given a two-dimensional array of numbers, prints the top-right to lower-left diagonal of the array. Assume that the width and height of the array is equal (i.e. the two-dimensional array is square) Example For the following array 1 3 17 3 12 51 11 4 6 2 1 3 3 65 0 3 1 6 27 4 2 3 22 9 your program should print: 12 6 3 1 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
