Skip to content

Instantly share code, notes, and snippets.

@raryosu
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raryosu/dd195e9856b8724671ca to your computer and use it in GitHub Desktop.
Save raryosu/dd195e9856b8724671ca to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main() {
int x, y;
while(1) {
scanf("%d%d", &x, &y);
if(x==0 && y==0) { // 2数が0なら終了
break;
}
if(x<y) {
printf("%d %d\n", x, y);
} else {
printf("%d %d\n", y, x);
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment