2011年7月12日 星期二

ACM 11172 Relational Operators

這是練習C語法的題目...= =


#include <stdio.h>

int main(void)
{
    long long a, b;
    int t;
   
    scanf("%d", &t);
    while (t--)
    {
        scanf("%lld%lld", &a, &b);
        if (a > b)
            printf(">\n");
        else if (a < b)
            printf("<\n");
        else
            printf("=\n");
    }

    return 0;
}

沒有留言:

張貼留言