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
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
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
Social Sciences,
1 month ago
Geography,
1 month ago
Science,
2 months ago
Math,
2 months ago
Social Sciences,
11 months ago
Environmental Sciences,
11 months ago
Math,
11 months ago