题解 | #判断两个数的大小关系#
判断两个数的大小关系
http://www.nowcoder.com/practice/f05358b9e8164b27871c87d3097f4dab
#include <stdio.h>
int main() { int x = 0; int y = 0; while (scanf("%d %d", &x, &y) != EOF) { getchar(); if (x > y) printf("%d>%d\n", x, y); else if(x == y) printf("%d=%d\n", x, y); else printf("%d<%d\n", x, y); } return 0; }