#include <stdio.h>
void swap(int *x, int *y){
int w;
w= *x;
*x = *y;
*y = w;
}
void sort(int *x, int *y){
int t;
if(*x < *y){
swap(x,y);
}}
int main(void) {
int x, y;
sort(&x, &y);
printf("降順: x = %d, y = %d\n", x
, y
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHN3YXAoaW50ICp4LCBpbnQgKnkpewogICAgaW50IHc7CiAgICB3PSAqeDsKICAgICp4ID0gKnk7CiAgICAqeSA9IHc7Cn0Kdm9pZCBzb3J0KGludCAqeCwgaW50ICp5KXsKCWludCB0OwogICAgaWYoKnggPCAqeSl7CiAgICBzd2FwKHgseSk7CiAgICAJCiAgICAKfX0KaW50IG1haW4odm9pZCkgewogICAgaW50IHgsIHk7CiAgICAgc2NhbmYoIiVkIiwgJngpOwogICAgIHNjYW5mKCIlZCIsICZ5KTsKICAgIHByaW50ZigieCA6ICIpOwogICAgcHJpbnRmKCJ5IDogIik7IAogICAgc29ydCgmeCwgJnkpOwogICAgcHJpbnRmKCLpmY3poIY6IHggPSAlZCwgeSA9ICVkXG4iLCB4LCB5KTsKCgogICAgcmV0dXJuIDA7Cn0K