void sort(int* a,int* b,int* c)
{
int t;
if (*a>*b)
t=*a,*a=*b,*b=t;
if (*b>*c)
{
t=*b,*b=*c,*c=t;
if (*a>*b)
t=*a,*a=*b,*b=t;
}
}
有三个数abc,要求按大小顺序输出.请问用C语言怎么写?
有三个数abc,要求按大小顺序输出.请问用C语言怎么写?
其他人气:863 ℃时间:2020-01-31 02:55:04
优质解答
我来回答
类似推荐