#include <stdio.h>
#include <time.h>
#include <stdlib.h>
void main()
{
int i =0;
int scores[5];
int num;
int s=0;
srand((unsigned)time(NULL));
for(i=0;i<10;i++)
{
num=rand()%10+1;
scores[i]=num;
s=scores[i];
}
for(i=0;i<10;i++){
if(s>scores[i])
s=scores[i];
}
printf("%d\n",scores[i]);
printf("%d\n",s);
Lemon156
相关分类