(Move to ...)
▼
Logical Operators
# include <iostream.h>
void main ()
{
int a = 2 , b = 7 ;
cout<<((a<b)&&(b!=0))<<endl ;
cout<<((a>b)&&(b>=0))<<endl ;
cout<<((a==b)||(b>0))<<endl ;
cout<<((a!= 0)||(a>0))<<endl ;
cout<< !(a>0)<<endl ;
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment