#include
void main()
{
int i,n,m,min;
scanf("%d",&n);
scanf("%d",&min);
for(i=1;i{
scanf("%d",&m);
if(min>m) min=m;
}
printf("min=%d",min);
}
运行示例:
#include
void main()
{
int i,n,m,min;
scanf("%d",&n);
scanf("%d",&min);
for(i=1;i{
scanf("%d",&m);
if(min>m) min=m;
}
printf("min=%d",min);
}
运行示例: