sabbir_alam

Relational Operator

Oct 30th, 2014
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int tCase,nCase;
  5.     scanf("%d",&tCase);
  6.     for(nCase=1;nCase<=tCase;nCase++)
  7.     {
  8.         int a,b;
  9.         scanf("%d %d",&a,&b);
  10.         if(a>b)
  11.         {
  12.             printf(">\n");
  13.         }
  14.         else if(a<b)
  15.         {
  16.             printf("<\n");
  17.         }
  18.         else
  19.         {
  20.             printf("=\n");
  21.         }
  22.     }
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment