#include "stdio.h"
viod main ()
{
int i;int x,max,min;
printf("please input the first number:");
scanf("%d",&x);
max=x;
min=x;
for(i=2;i<=10;i+ +)
{
printf("please input the next number:");
scanf("%d",&x);
if(x>max)
max=x;
else if(x<min)
min=x;
}
printf("max=%d,min=%d\n",max,min);
}
viod main ()
{
int i;int x,max,min;
printf("please input the first number:");
scanf("%d",&x);
max=x;
min=x;
for(i=2;i<=10;i+ +)
{
printf("please input the next number:");
scanf("%d",&x);
if(x>max)
max=x;
else if(x<min)
min=x;
}
printf("max=%d,min=%d\n",max,min);
}
