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:20 Source Code ( How to Write a txt File Using Python

Java Script Na Ennada Series Video No : 9 Code

Java Script Na Ennada No : 8 Source Code