#include <stdio.h>
int main() {
int matriz[4][4];
int i, j;
int maior, linha, coluna;
for (i = 0; i < 4; i++) {
for (j = 0; j < 4; j++) {
scanf("%d", &matriz[i][j]);
}
}
maior = matriz[0][0];
linha = 0;
coluna = 0;
for (i = 0; i < 4; i++) {
for (j = 0; j < 4; j++) {
printf("%d ", matriz[i][j]);
if (matriz[i][j] > maior) {
maior = matriz[i][j];
linha = i;
coluna = j;
}
}
printf("\n");
}
printf("Maior valor: %d\n", maior);
printf("Linha: %d\n", linha + 1);
printf("Coluna: %d\n", coluna + 1);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: