Conditional ternary operator

#include<iostream>
using namespace std;
int main()
{
    
    int a,b;
    string c,d,largest;
    c = "hi";
    d = " bye";
    cin>>a>>b;
    largest = (a>b)?c:d;
    cout<<largest;
    
    return 0;
}

Comments

Popular posts from this blog

PYTHON NA ENNADA VIDEO NO 18 SOURCE CODE

Java Script Na Ennada Series Video No : 9 Code