Question #19878

Write a Java program which performs the following: - Reads 25 integers into a 5 by 5 2-D array called R.

- Prints the sum of each of the diagonals of R.

- Swaps row 1 elements of R with row 3 elements of R.

- Prints the sum of each row.

- Prints the sum of each column.

- Prints the sum of each of the diagonals of R.

- Swaps row 1 elements of R with row 3 elements of R.

- Prints the sum of each row.

- Prints the sum of each column.

Expert's answer

Unfortunately, your question requires a lot of work and cannot be done for free.

Submit it with all requirements as an assignment to our control panel and we'll assist you.

Submit it with all requirements as an assignment to our control panel and we'll assist you.

## Comments

## Leave a comment