google407ec42f1ae5ff0e.html
top of page

Write a C program to understand the use of relational operators

Writer's picture: Yatendra AwanaYatendra Awana

#include<stdio.h>

void main()

{

int x,y ;

printf("Enter values for x and y : ");

scanf("%d%d",&x,&y);

if(x<y)

printf("%d is less than %d\n",x,y);

if(x<=y)

printf("%d is less than or equal to %d\n",x,y);

if(x==y)

printf("%d is equal to %d\n",x,y);

if(x!=y)

printf("%d is not equal to %d\n",x,y);

if(x>y)

printf("%d is greater than %d\n",x,y);

if(x>=y)

printf("%d is greater than or equal to %d\n",x,y);

getch();

}


Recent Posts

See All

Comments


Facilities-:
One to one  online  / Offline Class
Individual training 
Corporate Training
E-Certificate for each course
Life time video accessible
E-Books

About us-:
Fin Computer Class
Sector 107, Noida  U.P.
M-: 9871715299
E: fincomputerclass@gmail.com
W-: www.computerclass.co.in
W-: www.it402.com
Y-:www.youtube.com/yka39

All Rights Reserved @ fin computer class     Design & Developed by Yatendra Kumar Awana

bottom of page