#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();

}

263,096 total views, 130 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.

15,779 Thoughts to “C++ Program To Demonstrate Logical Operators”

  1. Please let me know if you’re looking for a article author for your site.
    You have some really great posts and I believe
    I would be a good asset. If you ever want to take some of the load off, I’d absolutely love to write some articles for your blog
    in exchange for a link back to mine. Please
    shoot me an email if interested. Thanks!

  2. I am going to go ahead and bookmark this page for my brother for a coming up research project for school. This is a appealing internet site by the way. Where did you obtain the template for this webpage?
    adidas factory outlet https://yakitorione.com/adidas/

Leave a Comment