04 2023 档案
摘要:#include<stdio.h>main(){int m,n,number=0;printf(" 红球 白球 黑球\n");printf("......................\n");for(m=0;m<=3;m++)for(n=0;n<=3;n++)if(8-m-n<=6)printf
阅读全文
摘要:#include<stdio.h>void print(int s[]);int judge(int c[]);int j=0;main(){int sweet[10]={10,2,8,22,16,4,10,6,14,20};int i,t[10],l;printf("child 1 2 3 4 5
阅读全文
摘要:#include<stdio.h>#define N 10main(){int i,a[N]={-3,4,7,9,13,45,67,89,100,180},low=0,high=N-1,mid,k=-1,m;printf("a数组中的数据如下:\n");for(i=0;i<N;i++)printf(
阅读全文
摘要:#include<stdio.h>#define N 10main(){int i,j,a[N],t,count=0;printf("请为数组元素赋初值:\n");for(i=0;i<N;i++)scanf("%d",&a[i]);for(i=1;i<=N-1;i++)for(j=0;j<N-i;j
阅读全文
摘要:#include<stdio.h>#include<math.h>main(){float solution(float a,float b,float c,float d);float a,b,c,d,x;printf("请输入方程的系数:");scanf("%f %f %f %f",&a,&b,
阅读全文
摘要:#include<stdio.h>void main(){long fib1=1,fib2=1,fib;int i;printf("%12ld%12ld",fib1,fib2);for(i=3;i<=30;i++){fib=fib1+fib2;printf("%12d",fib);if(i%4==0
阅读全文
摘要:#include<stdio.h>void main(){int i,j,k,temp;for(i=0;i<=9;i++)for(j=0;j<=9;j++){if(i!=j){k=1000*i+100*i+10*j+j;for(temp=31;temp<=99;temp++)if(temp*temp
阅读全文
摘要:#include<stdio.h>typedef struct date {int year;int month;int day;}DATE;int countDay(DATE);int runYear(int);void main(){DATE today;int totalDay;int res
阅读全文
摘要:#include<stdio.h>main(){int a,b,c,i=0;printf("A,B,C三人所选书号分别为:\n");for(a=1;a<=5;a++)for(b=1;b<=5;b++)for(c=1;c<=5;c++)if(a!=b&&a!=c&&c!=b){printf("A:%2
阅读全文
摘要:#include<stdio.h>main(){int cock,hen,chicken;for(cock=0;cock<=20;cock++)for(hen=0;hen<=33;hen++)for(chicken=0;chicken<=100;chicken++){if((5*cock+3*hen
阅读全文