#include<stdio.h>
int ch(int a,int b,int c)
{int d;
if(a<b) d=a,a=b,b=d;
if(a<c) d=a,a=c,c=d;
if(b<c) d=b,b=c,c=d;
printf("降序为%d,%d,%d\n",a,b,c);
return (d);
}
int main()
{
int ar[3],vr[3],i,j;
for(i=0;i<3;i++)
printf("input the number:"),scanf("%d",&ar[i]);
for(j=0;j<3;j++)
printf("input the number :"),scanf("%d",&vr[j]);
printf("%d",ch(ar[0],ar[1],ar[2]));
printf("%d",ch(vr[0],vr[1],vr[2]));
}