cout << (age >= 18 ? "OK\n" : (points >= 500 ?
"OK P\n" : "No P\n"));
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
int by = 72; // by => Birth Year
int s = 500; // s => Salary
cout << ( by > 80 ? ( s < 600 ? "Ok" : "High") : "Not Ok" );