新手求高手指教
#include<stdio.h>int main(void)
{
int n,min,number,number1,i;
printf("enter n:");
scanf("%d",&n);
printf("enter number1:");
scanf("%d",&number1);
min=number1;
for(i=1;i<=n;i++)
{
scanf("%d",&number);
if(number<=min)
{
min=number;
}
}
printf("min=%d\n",min);
return 0;
}
求n个数值的最小值,没有结果输出来,高手指点,谢谢啊