UVA 11172

http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=24&problem=2113&mosmsg=Submission+received+with+ID+11407808

简单的比较两个数的大小,记得类型定得大一点

View Code
#include<stdio.h>
#include<string.h>
int main()
{
 long long a,b;
 int i;
 while(scanf("%d",&i)!=EOF)
     {
      while(i--)
           {
            scanf("%lld%lld",&a,&b);
            if(a>b)
              printf(">\n");
            else if(a<b)
              printf("<\n");
            else
              printf("=\n");
           }
     }
 return 0;
}

 

posted @ 2013-03-09 10:23  执着追求的IT小小鸟  阅读(118)  评论(0编辑  收藏  举报