~cpp #include <iostream> using namespace std; const int MAX_GARO=4; const int MAX_SAERO=4; void main() { int number[MAX_SAERO][MAX_GARO]={0,}; for (register int i=0; i<MAX_SAERO-1; ++i) { for (register int j=0; j<MAX_GARO-1; ++j) { cout << i << "행" << j << "열의 숫자를 입력해주세요.>>"; cin >> number[i][j]; if (number[i][j]>number[i][MAX_GARO-1]) number[i][MAX_GARO-1]=number[i][j]; if (number[i][j]>number[MAX_SAERO-1][j]) number[MAX_SAERO-1][j]=number[i][j]; if (number[i][j]>number[MAX_SAERO-1][MAX_GARO-1]) number[MAX_SAERO-1][MAX_GARO-1]=number[i][j]; } } system("CLS"); cout << "결과를 출력합니다.\n"; for (register int i=0; i<MAX_SAERO; ++i) { for (register int j=0; j<MAX_GARO; ++j) { cout << number[i][j] << "\t"; } cout << "\n"; } }