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