int main()
{int a,b,c,x,y
scanf("%d%d%d",&a,&b,&c)
if(a>b){x=ay=b}
else {x=by=a}
if(c>x)x=c
else if(y>c)y=c
printf("%d,%d,%d",y,a+b+c-x-y,x)
}
#includemain(){inta,b,c,tprintf("inputthreenumberplease")scanf("%d,%d,%d",&a,&b,&c)if(a>b){t=bb=aa=t}if(a>c){t=cc=aa=t}if(b>c){t=cc=bb=t}//对三个数进行简单的排序printf("%d,%d,%d",a,b,c)}//编译通过欢迎分享,转载请注明来源:内存溢出
评论列表(0条)