Page 29 - INTRODUCTION_TO_C++_Neat
P. 29

LOGICAL OPERATORS

#include<iostream.h>
#include<conio.h> void main()
{
int a,b; a=12;
b=10;

if(a&&b)
{ cout<<”condition is true”; }
if(a||b)
{ cout<<“condition is true”; }
   24   25   26   27   28   29   30   31   32   33   34