//生成 100~200的随机数#include #include int min;int find(){ int i, y, x,max; x = rand()%101 + 100; max = x; min = x; printf("生成的随机数为:\n%d\n",x); for(i =0;i<9;i++){ y = rand()%101 + 100; printf("%d\t\n",y); if(y>max) max = y; if(y #include int fac(int n){ static int f = 1; f *= n; return f;}void main(){ int k; for(k=1;k<=5;k++){ printf("%d! = %d\n",k,fac(k)); }} //判断为该年第几天#include int days(int year,int month,int day){ int i,count=0,monthArr[] = { 31,28,31,30,31,30,31,31,90,31,30,31}; if( ((year%100)&&!(year%4)) || !(year%400) ) monthArr[1] = 29; for(i=0;i