#include<stdio.h>
int main()
{ int max,min,n;
printf("Input a siries of number,and the last one is 0:");
scanf("%d",&n);
max=n;min=n;
do{
if(n>=max) max=n;
else if(n<=min) min=n;
else
scanf_s("%d",n);
}while(n==0);
printf("max is %d,min is %d",max,min);
getchar();
getchar();
}
慕哥8595403