#include <stdio.h>
void scanfall(int *x, int *y, int *z);
void ascend(int *x, int *y, int *z);
void swap(int *x, int *y);
int main(){
int a,b,c;
scanfall(&a,&b,&c);
printf("入力:a=%d, b=%d, c=%d\n", a
,b
,c
);
ascend(&a,&b,&c);
printf("昇順:a=%d, b=%d, c=%d",a
,b
,c
);
return 0;
}
void scanfall(int *x, int *y, int *z){
}
void swap(int *x, int *y){
int w;
w=*x;
*x=*y;
*y=w;
}
void ascend(int *x, int *y, int *z){
if(*x>*y) swap(x,y);
if(*x>*z) swap(x,z);
if(*y>*z) swap(y,z);
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHNjYW5mYWxsKGludCAqeCwgaW50ICp5LCBpbnQgKnopOwp2b2lkIGFzY2VuZChpbnQgKngsIGludCAqeSwgaW50ICp6KTsKdm9pZCBzd2FwKGludCAqeCwgaW50ICp5KTsKCmludCBtYWluKCl7CglpbnQgYSxiLGM7CgkKCXNjYW5mYWxsKCZhLCZiLCZjKTsKCQoJcHJpbnRmKCLlhaXlipvvvJphPSVkLCBiPSVkLCBjPSVkXG4iLCBhLGIsYyk7CgoJYXNjZW5kKCZhLCZiLCZjKTsKCglwcmludGYoIuaYh+mghu+8mmE9JWQsIGI9JWQsIGM9JWQiLGEsYixjKTsKCglyZXR1cm4gMDsKfQoKdm9pZCBzY2FuZmFsbChpbnQgKngsIGludCAqeSwgaW50ICp6KXsKCXNjYW5mKCIlZCIsIHgpOwoJc2NhbmYoIiVkIiwgeSk7CglzY2FuZigiJWQiLCB6KTsKfQoKdm9pZCBzd2FwKGludCAqeCwgaW50ICp5KXsKCWludCB3OwoJCgl3PSp4OwoJKng9Knk7CgkqeT13Owp9Cgp2b2lkIGFzY2VuZChpbnQgKngsIGludCAqeSwgaW50ICp6KXsKCWlmKCp4Pip5KSBzd2FwKHgseSk7CglpZigqeD4qeikgc3dhcCh4LHopOwoJaWYoKnk+KnopIHN3YXAoeSx6KTsKfQoKCgo=