新人有问
我编了个求最大值的C程序输出不正确,请大家看看,指点一下
#include<stdio.h>
void main()
{
int max,min,x,n;
printf("please input the first number\t");
scanf("%d",&x);
max=min=x;
for(n=2;n<11;n++);
{
printf("please input the %d number\t",n);
scanf("%d",&x);
if(x>max)
max=x;
if(x<min)
min=x;
}
printf("the biggest number is %d.\n",max);
printf("the smallest number is %d.\n",min);
}