Write a Program to find out output of all relational number


/* This program is to find out output of all relational number */

#include<stdio.h>

main ()
{
 int a,b;
printf("Enter two number \n");
scanf("%d%d",&a,&b);
printf("\n %d < %d = %d",a,b,a<b);
printf("\n %d > %d = %d",a,b,a>b);
printf("\n %d <= %d = %d",a,b,a<=b);
printf("\n %d >= %d = %d",a,b,a>=b);
}



/*
INPUT:
Enter two number
45
78
OUTPUT:
 45 < 78 = 1
 45 > 78 = 0
 45 <= 78 = 1
 45 >= 78 = 0
*/

Comments