Thursday, 19 May 2011

uva 11172-Relational operator

#include<stdio.h>
int main()
{
    int t,a,b;
    //freopen("in.txt","r",stdin);
    scanf("%d",&t);
    while(t--)
    {
        scanf("%d%d",&a,&b);
        if(!(a^b)) printf("=\n");
        else if(a>b) printf(">\n");
        else printf("<\n");
    }
    return(0);
}

No comments:

Post a Comment