# 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.
{"ft_lang_label":"__label__en","ft_lang_prob":0.84437287,"math_prob":0.9728117,"size":419,"snap":"2022-27-2022-33","text_gpt3_token_len":101,"char_repetition_ratio":0.15903614,"word_repetition_ratio":0.27272728,"special_character_ratio":0.24821003,"punctuation_ratio":0.058139537,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98935974,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-06-28T19:25:08Z\",\"WARC-Record-ID\":\"<urn:uuid:af727861-af82-4c3c-bacf-8b5c95403e32>\",\"Content-Length\":\"96283\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:86a30f05-48e3-4afc-bb17-e95ad9634e63>\",\"WARC-Concurrent-To\":\"<urn:uuid:c9603d86-22ee-4a89-aa90-1ec54bfa1af8>\",\"WARC-IP-Address\":\"103.138.188.139\",\"WARC-Target-URI\":\"https://amplifylearning.co.in/tag/2d-array/\",\"WARC-Payload-Digest\":\"sha1:NIVL3QFJOMQ6E3SUFFZTSACGZPUP66ZP\",\"WARC-Block-Digest\":\"sha1:TWP47HCVI6LTZ66QFPT4IHE6JPTTBP6V\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656103573995.30_warc_CC-MAIN-20220628173131-20220628203131-00552.warc.gz\"}"}