题解 | 判断两个数的大小关系
#include <stdio.h> int main() { int a, b; while (scanf("%d %d", &a, &b) != EOF) { // 注意 while 处理多个 case // 64 位输出请用 printf("%lld") to if(a > b) printf("%d>%d\n",a, b); else if (a < b) printf("%d<%d\n",a, b); else printf("%d=%d\n",a, b); } return 0; }