Program for logical operator
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
a=10;
b=20;
c=30;
/* If operation is true then 1 will return otherwise 0 will return */
printf("%d",(a<b)&&(b<c));
printf("%d",(a>b) || (b<c));
printf("%d",!(a==b));
getch();
}
Redmi Note 10T
0 Comments