1534282

开心  •  13天前


include

using namespace std; int main() {

int a[3][3];
int l = 0;
int h = 0;
for (int i = 0; i < 3; i++) {
	for (int j = 0; j < 3; j++) {
		cin >> a[i][j];
	}
}
int sum = 0, mux = a[0][0];
l = a[0][0] + a[1][1] + a[2][2];
h = a[0][2] + a[1][1] + a[2][0];
cout << l;
cout << endl;
cout << h;
return 0;

}


评论:

请先登录,才能进行评论