# 2D Array

## Program to find the saddle point coordinates in a given matrix

Program to find the saddle point coordinates in a given matrix is discussed here.A saddle point is an element of the matrix, which is the minimum element in its row and the maximum in its column. For example, consider the matrix given below Mat = 1 2 34 5 67 8 9 Here, 7 is …

## 2D Array – ISC SPECIMEN QUESTION PAPER – 2020

Write a program to declare a square matrix M [ ] [ ] of order ‘N’ where ‘N’ must be greater than 3 and less than 10. Allow the user to accept three different characters from the keyboard and fill the array according to the instruction given below: (i) Fill the four corners of the …

## 2D Array – Symmetric Matrix

Write a program to accept elements in a square matrix of N cross N order and check whether it is a symmetric matrix or not. A square Matrix which is equal to its transpose is known as a symmetric matrix. OUTPUT Enter size of the Matrix 3 Enter all the elements of matrix: 1 2 …

## 2D Array – Scalar Matrix

Write a program to enter elements in the matrix of 4 into 4 order and check whether the matrix is scalar matrix or not( the scalar matrix is basically a square Matrix, whose all off diagonal elements are 0 and on diagonal elements are equal) OUTPUT Enter all the elements of matrix: 1 0 0 …

## 2D Array – Print Left Diagonal elements

Write a program to enter the elements in the matrix of 4 cross 4 order and print lowermost element of the left diagonal of the matrix including the diagonal elements OUTPUT Enter all the elements of matrix: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Original Matrix: …

## 2D Array – Print Right Diagonal Elements

Write a program to enter elements in the matrix of order 4 cross 4 and print uppermost element of the right diagonal of the matrix including the diagonal elements OUTPUT Enter all the elements of matrix: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Original Matrix: 1 …

## Java Program to Accept a Matrix (or 2D Array) and Interchange the Diagonals

This is a Java Program to Accept a Matrix of Order NxN and Interchange the Diagonals.