mirror of
https://github.com/renbaoshuo/202401-programming-assignments.git
synced 2024-11-27 08:26:20 +00:00
15 lines
277 B
C
15 lines
277 B
C
// int Row, Col;
|
|
|
|
int fun(int array[N][M]) {
|
|
for (int i = 0; i < N; i++) {
|
|
for (int j = 0; j < M; j++) {
|
|
if (array[i][j] > array[Row][Col]) {
|
|
Row = i;
|
|
Col = j;
|
|
}
|
|
}
|
|
}
|
|
|
|
return array[Row][Col];
|
|
}
|