fahamidur

Relational Operator 2863

Sep 23rd, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int  main(){
  4.  
  5.     int a,b,x,i = 0;
  6.  
  7.     scanf("%d",&x);
  8.  
  9.  
  10.         for (i = 0; i < x && x < 15 && a < 1000000001 && b <1000000001; i++) {
  11.  
  12.             scanf("%d",&a);
  13.             scanf("%d",&b);
  14.  
  15.             if (a > b){
  16.                 printf(">");
  17.             }else if(a < b){
  18.                 printf("<");
  19.             }else{
  20.                 printf("=");
  21.             }
  22.  
  23.         }
  24.  
  25.     return 0;
  26.  
  27. }
Add Comment
Please, Sign In to add comment