logic operators in cpp
logic operators in cpp
#include<iostream>
using namespace std;
int main()
{
cout<<"logic operators"<<endl;
if(!false)
{
cout<<"Not false !"<<endl;
}
if(true || false)
{
cout<<"OR ||"<<endl;
}
if(true && 1)
{
cout<<"And &&"<<endl;
}
return 0;
}
Comments
Post a Comment
Any doubt about programming or questions