#include <iostream>
using namespace std;
int main()
{ int a,b,c,Highest;
cout<<"Enter three numbers:";
cin>>a>>b>>c;
Highest=(a>b&&a>c?a:b>c?b:c);
cout<<"Highest is:"<<Highest;
return 0;
}
I know how to find out largest of 3 numbers by using conditional operator.BUt How to find out highest of 4 numbers by using conditional operator in c+ ??? anyone can help me out ??