/*Program to understand the use of relational operators*/
main()
{
x,y;
printf(“Enter the value of x and y”);
scanf(“%d%d”,&x,&y);
(x>y)
{
printf(“%d is grater then %d\n”,x,y);
}
(x>=y)
{
printf(“%d is grater then or equal to %d\n”,x,y);
}
(x==y)
{
printf(“%d is equal to %d\n”,x,y);
}
(x!=y)
{
printf(“%d is not equal to %d”,x,y);
}
}
|