#includestdio.h#includestdlib.h#includetime.hvoidmain(){time #include#include#includevoid main(){time_t t;//定义变量float money,rest_money,red_max,red[100];unsigned int i,rest_number,number;srand((unsigned int)time(NULL));//输入部分p
           
        
        #includestdio.h#includestdlib.h#includetime.hvoidmain(){time                                                                                           
  #include#include#includevoid main(){time_t t;//定义变量float money,rest_money,red_max,red[100];unsigned int i,rest_number,number;srand((unsigned int)time(NULL));//输入部分printf("please input the number:\t");scanf("%d",printf("please input money:\t");scanf("%f",red_max=money/number*2;//数据处理部分rest_mOney=money;for(i=0;i
该版程序输出的红包比较接近平均值  程序示范:
  please input the number:    7 please input money:   10 output the red: 1.37  1.68  2.04  0.08  0.29  2.52  2.02