#include "stdio.h"
#define N 7
main()
{ int i;
int temp;
int students[N];
for(i=1;i<=N;i++){
temp=rand()%45+1;
students[i]=temp;
printf("the %d student no is %d\n",i,temp);}
}
45人中抽取7人可能重复
最新推荐文章于 2022-03-01 23:08:43 发布