RELATIONAL OPERATORS

 RELATIONAL OPERATORS


OUTPUT

 #include <stdio.h>

int main()
{
   int a,b;
   a=20;
   b=10;

   // == - IS EQUALS TO 
   // > - IS GREATER THAN
   // < - IS LESS THAN 
   // != - IS NOT EUALS TO 
   // <= - LESS THAN OR EUALS TO
   
    printf("a==b = %d\n"a==b);
    printf("a>b = %d\n"a>b);
    printf("a<b = %d\n"a<b);
    printf("a!=b = %d\n"a!=b);
    printf("a<= b = %d\n"a<=b);

    return 0;
}
INPUT
a==b = 0 a>b = 1 a<b = 0 a!=b = 1 a<= b = 0

Comments