#include <stdio.h>
void scanfall(int *x, int *y, int*z)
{
}
void ascend(int *x, int *y, int*z)
{
if(*x>*y)
{
swap(x,y);
}
if(*y>*z)
{
swap(y,z);
}
if(*x>*y)
{
swap(x,y);
}
}
void swap(int *a, int *b)
{
int t;
t=*a;
*a=*b;
*b=t;
}
int main(void) {
int a,b,c;
scanfall(&a,&b,&c);
printf("入力値;%d %d %d\n",a
,b
,c
); ascend(&a,&b,&c);
printf("降順;a=%d b=%d c=%d",a
,b
,c
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgl2b2lkIHNjYW5mYWxsKGludCAqeCwgaW50ICp5LCBpbnQqeikKCQl7CgkJCXNjYW5mKCIlZCVkJWQiLHgseSx6KTsKCQkJfQoKCXZvaWQgYXNjZW5kKGludCAqeCwgaW50ICp5LCBpbnQqeikKCQl7CiAgICAgICAgICAgaWYoKng+KnkpCgkJewoJCQlzd2FwKHgseSk7CgkJCX0KCQkJaWYoKnk+KnopCgkJewoJICAgICAgIHN3YXAoeSx6KTsKCQl9CgkJaWYoKng+KnkpCgkJewoJCQlzd2FwKHgseSk7CgkJfQoJCQl9CgoJdm9pZCBzd2FwKGludCAqYSwgaW50ICpiKQoJCXsKCQkJaW50IHQ7CgkgICAgICAgIHQ9KmE7CiAgICAgICAgICAgICphPSpiOwogICAgICAgICAgICAqYj10OwoJCQl9CgkJaW50IG1haW4odm9pZCkgewoJCWludCBhLGIsYzsJCgkJc2NhbmZhbGwoJmEsJmIsJmMpOwoJCXByaW50Zigi5YWl5Yqb5YCkOyVkICVkICVkXG4iLGEsYixjKTsKCQlhc2NlbmQoJmEsJmIsJmMpOwoJCXByaW50Zigi6ZmN6aCGO2E9JWQgYj0lZCBjPSVkIixhLGIsYyk7CglyZXR1cm4gMDsKfQo=