#include<stdio.h> int main(){ int a[3][3]={2,3,5, 45,23,65, 8,46,67}; int s,t; s=a[0][0]+a[2][2]+a[1][1]; t=a[0][2]+a[1][1]+a[2][0]; printf("%d\n%d\n",s,t); return 0; }
转载于:https://www.cnblogs.com/p201821440019/p/10819405.html
#include<stdio.h> int main(){ int a[3][3]={2,3,5, 45,23,65, 8,46,67}; int s,t; s=a[0][0]+a[2][2]+a[1][1]; t=a[0][2]+a[1][1]+a[2][0]; printf("%d\n%d\n",s,t); return 0; }
转载于:https://www.cnblogs.com/p201821440019/p/10819405.html