#include<bits/stdc++.h>
using namespace std;
void somadhan()
{ 
    //Syntex of ternary operator 
    //condition? expression_if_true : expression_if_false;

    //Greater between two integer.
    int a=10, b=-12;

    int greater = (a>b) ? a : b ;

    //ternary operator--> (a>b) ? a : b ;

    cout<<"Greater number between "<< a<<" & "<<b <<" is: "<<greater<<"\n";

    //checking positive, neqative or zero;
    
    int num=-11;

    string check= (num>0) ? "Positive" :(num==0) ? "Zero" : "Negative" ;
    
    //Nested ternary operator--> (num>0) ? "Positive" :(num==0) ? "Zero" : "Negative" ;

    cout<<num<<" is a "<<check<<" number."<<"\n";
    
    //Checking even odd
    string result= (num%2==0) ? "even" : "odd" ;

    //ternary operator --> (num%2==0) ? "even" : "odd" ;

    cout<<num<<" is an "<<result<<" number"<<"\n";

}

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0), cout.tie(0);

    somadhan();

    return 0;
}