#include<iostream.h>
#include<conio.h>
{
clrscr();
int a,b,c;
cout<<"Enter a,b,c";
cin>>a>>b>>c;
{
cout<<"\n a is Greater";
}
{
cout<<"\n b is Greater";
}
{
cout<<"\n c is Greater";
}
getch();
}
Unary operators operate on one operand(variable or constant). There are two types of unary operators- increment and decrement.
|
| Operator | Symbol | Form | Operation |
|---|---|---|---|
| Greater than | > | x > y | true if x is greater than y, false otherwise |
| Less than | < | x < y | true if x is less than y, false otherwise |
| Greater than or equals | >= | x >= y | true if x is greater than or equal to y, false otherwise |
| Less than or equals | <= | x <= y | true if x is less than or equal to y, false otherwise |
| Equality | == | x == y | true if x equals y, false otherwise |
| Inequality | != | x != y | true if x does not equal y, false otherwise |