Program to show different Relational operators

Relational Operators


/*   Relational operators
*/


  #include<stdio.h>
   #include<conio.h>
  int main()
 { 
      int num1=30;
      int num2=50;
      clrscr();
    printf("\nValue Of %d > %d is %d ", num1,num2,num1>num2);
    printf("\nValue of %d >= %d is %d",num1,num2,num1>=num2);
    printf("\nValue of %d <= %d is %d", num1,num2, num1<=num2);
    printf("\nValue of %d < %d is %d",num1, num2,num1<num2);
    printf("\nValue Of %d == %d is %d", num1, num2, num1==num2);
    printf("\nvalue of %d != %d is %d", num1,num2,num1!=num2);
    getch();
    return 0;
 }

relational-operators 
 
 

Output


relational-operators-output 



Facebook Likes

Youtube