print a logical operation in c program
Example:-
#include<stdio.h>
#include<conio.h>
main ()
{
char g=66,h=98,i;
clrscr();
i=g>h && h>g;
//i=g>h || h>g;
clrscr();
gotoxy(15,26);
textcolor(RED+BLINK);
cprintf("%d",i);
getch();
}
Output:-
b
B
Good
ReplyDelete