标签:main inf printf include int http ima i++ can
# include <stdio.h>
int main()
{int i,j,a[3][3];
for(i=0;i<3;i++)
for(j=0;j<3;j++)
scanf("%d",&a[i][j]);
int sum1,sum2;
sum1=a[0][0]+a[1][1]+a[2][2];
sum2=a[0][2]+a[1][1]+a[2][0];
printf("%d %d",sum1,sum2);
return 0;
}
标签:main inf printf include int http ima i++ can
原文地址:https://www.cnblogs.com/P201821430014/p/10911561.html