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