#include <stdio.h>
#include <stdlib.h>冲咐败
#include "time.h"
int main(int 散颤argc, char *argv[])
{
int i,num=0,temp;
srand(time(0));
for(i=0;i<100;i++)
{
temp=rand()%100+1;
num=num+temp;
printf("%d ",temp);
}
printf("\n\n平均值为:%.2f",num/100.0);
return 简羡0;
}