2025-02-28 09:15:39 +08:00

18 lines
220 B
C

#include <stdio.h>
#include <time.h>
#include <stdlib.h>
int main(){
int num[10], i;
srand((unsigned)time(NULL));
for(i=0;i<10;i++){
num[i] = rand()%101;
printf("%d ", num[i]);
}
printf("\n");
return 0;
}