#include <stdio.h>
void sort(int *x,int *y);
int main(void) {
int x=4,y=8;
sort(&x,&y);
printf("2つの整数x、yを降順に並べ替えると%d,%d",x
,y
);
return 0;
}
void sort(int *x,int *y){
if(*x<*y){
int w;
w=*x;
*x=*y;
*y=w;
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHNvcnQoaW50ICp4LGludCAqeSk7CgppbnQgbWFpbih2b2lkKSB7CglpbnQgeD00LHk9ODsKICAgIHNvcnQoJngsJnkpOwogICAgcHJpbnRmKCLvvJLjgaTjga7mlbTmlbB444CBeeOCkumZjemghuOBq+S4puOBueabv+OBiOOCi+OBqCVkLCVkIix4LHkpOwogICAgCglyZXR1cm4gMDsKfQoKdm9pZCBzb3J0KGludCAqeCxpbnQgKnkpewoJaWYoKng8KnkpewoJCWludCB3OwoJCXc9Kng7CgkJKng9Knk7CgkJKnk9dzsKCX0KfQ==