Question: Question 1: Write a program in Java to input numbers in a 2D array. Where the order of array is entered by the user at

Question 1: Write a program in Java to input numbers in a 2D array. Where the order of array is entered by the user at run time. Perform the following operations on the array (a) Print only the prime numbers from the boundary elements of the array in sorted order, Row wise. (b) Find the sum of elements present at both diagonals
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
