摘要: #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" 阅读全文
posted @ 2019-05-06 14:27 p201821440019 阅读(172) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> void swap(int *a,int *b){ int t; t=*a; *a=*b; *b=t; } int main(){ int a[10]={12,3,54,34,6,7,465,678,45,99}; int i,t,j; for(j=0;j<10; 阅读全文
posted @ 2019-05-06 14:17 p201821440019 阅读(194) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ int a,b,c,s,t=0; for(a=1;a<6;a++){ for(b=1;b<6;b++){ for(c=1;c<6;c++){ s=100*a+10*b+c; if(a!=b&&b!=c&&a!=c){ printf("%d\n 阅读全文
posted @ 2019-05-06 14:02 p201821440019 阅读(244) 评论(0) 推荐(0) 编辑