Computer Science, asked by vaibhavisrivastava16, 2 months ago

find the largest number in 4*4 matrix and print that number in left and right diagonal.

double dimensional array
class 11 ​

Answers

Answered by ayush2073
0

Explanation:

Input:

4

1 2 3 4

4 3 2 1

7 8 9 6

6 5 4 3

Output:

Principal Diagonal: 1, 3, 9, 3

Secondary Diagonal: 4, 2, 8, 6

Input:

3

1 1 1

1 1 1

1 1 1

Output:

Principal Diagonal: 1, 1, 1

Secondary Diagonal: 1, 1, 1

Answered by Anonymous
0

Answer:

in java?

Explanation:

find the largest number in 4*4 matrix and print that number in left and right diagonal.

double dimensional array

class 11 ​

Similar questions