Problem B: 零起点学算法17——2个数比较大小
#include<stdio.h> int main() { int n,m; while(scanf("%d %d",&n,&m)!=EOF) if(n<m) printf("%d %d",m,n); else printf("%d %d",n,m); return 0; }
#include<stdio.h> int main() { int n,m; while(scanf("%d %d",&n,&m)!=EOF) if(n<m) printf("%d %d",m,n); else printf("%d %d",n,m); return 0; }