#include <iostream.h>
#include <conio.h>
void main()
{
int p=1, q=-2, r=3, s=4,a;
clrscr();
a= p>q || r<s;
cout<<a;
int b;
b=p<r && q<s;
cout<<'\n'<<b;
int c;
c= p+q<s-r && p+r<q+s;
cout<<"\n"<<c<<"\n";
getch();
}
Output:
1
1
0
By Dinesh Thakur
#include <iostream.h>
#include <conio.h>
void main()
{
int p=1, q=-2, r=3, s=4,a;
clrscr();
a= p>q || r<s;
cout<<a;
int b;
b=p<r && q<s;
cout<<'\n'<<b;
int c;
c= p+q<s-r && p+r<q+s;
cout<<"\n"<<c<<"\n";
getch();
}
Output:
1
1
0
Dinesh Thakur is a Freelance Writer who helps different clients from all over the globe. Dinesh has written over 500+ blogs, 30+ eBooks, and 10000+ Posts for all types of clients.
For any type of query or something that you think is missing, please feel free to Contact us.