解题思路:
注意事项:
参考代码:
#include <stdio.h>
int main()
{
int a[3][3];
int i,j;
for(i=0;i<3;i++)
for(j=0;j<3;j++)
scanf("%d",&a[i][j]);
printf("%d %d\n",a[0][0]+a[1][1]+a[2][2],a[0][2]+a[1][1]+a[2][0]);
return 0;
}
0.0分
0 人评分
简洁的代码浏览:1406 |
C二级辅导-统计字符 (C语言代码)浏览:532 |
C语言程序设计教程(第三版)课后习题10.4 (C语言代码)浏览:585 |
【偶数求和】 (C++代码)浏览:702 |
数组输出 (C语言代码)--此题的题目描述有问题浏览:1813 |
校门外的树 (C语言代码)浏览:956 |
WU-格式化数据输出 (C++代码)浏览:1194 |
WU-陶陶摘苹果2 (C++代码)浏览:967 |
Tom数 (C语言代码)浏览:492 |
2003年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)浏览:511 |