#include <stdio.h> void get_relation(int n1, int n2); int main() { int n1, n2 = 0; while ((scanf("%d %d", &n1, &n2)) != EOF) //scanf错误会返回EOF,当输入正确时保持循环 { get_relation(n1, n2); } return 0; }

void get_relation(int n1, int n2) { if (n1 < n2) printf("%d<%d\n", n1, n2); else if (n1 == n2) printf("%d=%d\n", n1, n2); else printf("%d>%d\n", n1, n2); }