Relational Operator

http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2113 判断两个数的大小,输出>或<或=

#include<stdio.h>

int main(){

    int t;

    long a,b;

    scanf("%d",&t);

    while(t--){

  scanf("%ld%ld",&a,&b);

  if(a>b)printf(">\n");

  else if(a==b)printf("=\n");

  else printf("<\n"); }

return 0;

}  

posted @ 2013-02-28 18:52  L kill  阅读(150)  评论(0编辑  收藏  举报