摘要:
#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 阅读全文
摘要:
#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 阅读全文
摘要:
#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][ 阅读全文
摘要:
#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 阅读全文