by Dinesh Thakur Category: Object-oriented programming (OOP)

 

#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

Popular Article