Error Logs🐾

이중배열에서 최대값찾기

hae02y 2023. 5. 16. 14:45
반응형

 

😊Review


int max = 0; //MAX를 0으로 초기화

for(int i=0;i<=edges.length-1;i++){
    for(int j=0;j<=edges[i].length-1;j++){
        if(max < edges[i][j]){
            max = edges[i][j];
        }
    }
}

 

 

 


 

반응형