摘要: #include <stdio.h> int main() { int arr[] = { 22, 34, 3, 32, 33,22,33,33,22,82, 55, 89, 50, 37, 5, 64, 35, 9, 70 }; int len = (int) sizeof(arr) / size 阅读全文
posted @ 2021-12-17 21:06 myrj 阅读(682) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main() { int arr[] = { 22, 34, 3, 32, 82, 55, 89, 50, 37, 5, 64, 35, 9, 70 }; int len = (int) sizeof(arr) / sizeof(*arr); print 阅读全文
posted @ 2021-12-17 20:52 myrj 阅读(726) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #define N 10 main() { int shu[N][N]={0},a,b,c; for(a=0;a<N;a++) { for(c=N-1-a;c>=0;c=c-1) printf(" ") ; for(b=0;b<=a;b++) { shu[a][ 阅读全文
posted @ 2021-12-17 16:27 myrj 阅读(677) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <math.h> main() { int shu[6][6]={0}; int a,b; for(a=0;a<6;a++) { for(b=0;b<6;b++) { if(a==b) shu[a][b]=1; if(a+b==5) shu[a 阅读全文
posted @ 2021-12-17 15:16 myrj 阅读(407) 评论(0) 推荐(0) 编辑