#include<iostream.h>

#include<conio.h>

void main()

{

clrscr();

cout<<“\nLogical AND “;

cout<<“\n1&&1= “<<(1&&1);

cout<<“\n1&&0= “<<(1&&0);

cout<<“\n0&&1= “<<(0&&1);

cout<<“\n0&&0= “<<(0&&0);

cout<<“\nLogical OR “;

cout<<“\n1||1= “<<(1||1);

cout<<“\n1||0= “<<(1||0);

cout<<“\n0||1= “<<(0||1);

cout<<“\n0||0= “<<(0||0);

cout<<“\nLogical NOT”;

cout<<“\n!1= “<<(!1);

cout<<“\n!0= “<<(!0);

getch();

}

62,446 total views, 114 views today

Get Free Email Updates..!
Join us for FREE to get instant email updates..! GobsInfo- Everything Unlimited
We hate spam. Your email address will not be sold or shared with anyone else.

4,114 Thoughts to “C++ Program To Demonstrate Logical Operators”

  1. Thank you a lot for sharing this with all of
    us you really know what you’re speaking about! Bookmarked.
    Kindly also discuss with my web site =). We can have a link change contract among us

Leave a Comment