1、2、#includevoid main()int a66,b6,i,j;printf(“请输入 6个整数:“);for(i=0;ivoid main()int i,j,count,n;int a100100;printf(“请输入矩阵的阶 n=“);scanf(“%d“,count=1;for(i=1;i=i+1;j-)/下侧an-i+1j=count;count+;for(j=n-i+1;j=i+1;j-)/左侧aji=count;count+;if(n%2=1)i=(n+1)/2;aii=n*n;for(i=1;ivoid main()int i,j,n,a100100,count=1;p
2、rintf(“请输入方阵的阶 n:“);scanf(“%d“,for(i=1;ivoid main()int i,j,count,n;int a100100;printf(“请输入矩阵的阶 n=“);scanf(“%d“,count=1;for(i=1;i=i+1;j-)/下侧an-i+1j=count;for(j=n-i+1;j=i+1;j-)/左侧aji=count;count+;if(n%2=1)i=(n+1)/2;aii=i;for(i=1;ivoid main()int a100,b100,i,n,m,k=0,flag=0;printf(“请输入洞的个数 n:“);scanf(“%d
3、“,printf(“请输入要经过洞的个数 m:“);scanf(“%d“,for(i=0;i0)printf(“n兔子有幸免的机会,位置为:n“);for(i=0;ivoid main()int a100,i,sum,k,n=0;for(i=0;ivoid main()int a,b,c,d,e;for(a=1;avoid main()int i,w1,w2,w3,sql;for(i=10;ivoid main()int A,B,C;for(A=1;A%dnB%dnC%dn“,A,B,C);printf(“1-X 2-Y 3-Zn“);16、#includevoid main()int num
4、ber;printf(“请输入一个整数nnumber=“);scanf(“%d“,if(number%4=0)printf(“%d能被 4整除n“,number);if(number%7=0)printf(“%d能被 7整除n“,number);if(number%9=0)printf(“%d能被 9整除n“,number);elseprintf(“不能被 4,7,9 任一个整除n“);17、#includevoid main()int a,b,c,d;printf(“Please think of a number between 1 and 100n“);printf(“your numb
5、er divided by 3 has a remainder ofn“);printf(“Please Input a=“);scanf(“%d“,printf(“your number divided by 4 has a remainder ofn“);printf(“Please Input b=“);scanf(“%d“,printf(“your number divided by 7 has a remainder ofn“);printf(“Please Input c=“);scanf(“%d“,printf(“let me think a moment .n“);d=28*a
6、+21*b+36*c;while (d84)d=d-84;printf(“你的数字是%dn“,d);18、#includevoid main()int a,b,c,d,e,f,g,h,i,sum1,sum2;for(a=1;a#includevoid main()char str100;int sum=0,i,n=0;printf(“请输入十六进制数:“);gets(str);n=strlen(str);for(i=0;ivoid main()int a,b,c,d,e,f,g,h,i;for(a=1;a#includevoid main()int a,b,c,d,e,f,g,h,i;for(a=1;avoid main()int number,w1,w2,w3,w4,w5;printf(“请输入一个五位以内的正整数:“);scanf(“%d“,if(number/10=0)printf(“它是一个一位数!n“);printf(“%dn“,number);printf(“正序逆序相同!n“);else