Use of Relational Operator

Thursday, 8 September 2011

#include<stdio.h>
#include<conio.h>
void main()
{
int a=5,b=6,c,d,e,f,g;
clrscr();
c=a>b;
d=a<b;
e=(4!=3);
f=(8>=17);
g=(123<=123);
printf("Value of c=%d\n",c);
printf("Value of d=%d\n",d);
printf("Value of e=%d\n",e);
printf("Value of f=%d\n",f);
printf("Value of g=%d\n",g);
getch();
}


OUTPUT:


Value of c=0
Value of d=1
Value of e=1
Value of f=0
Value of g=1












No comments:

Post a Comment

 

Blogger news

Blogroll

Enter your email address:

Delivered by FeedBurner

Total Pageviews

Followers

Most Reading