Posts

Showing posts from January, 2022

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; }

Log Solver