题解 | #判断两个数的大小关系#
判断两个数的大小关系
https://www.nowcoder.com/practice/f05358b9e8164b27871c87d3097f4dab
#include <stdio.h> int main() { int a, b; while (scanf("%d%d", &a, &b)!=EOF) //EOF下可以不断输入a,b的值 { if (a == b) { printf("%d=%d\n", a, b); } if (a > b) { printf("%d>%d\n", a, b); } if (a < b) { printf("%d<%d\n", a, b); } } return 0; }