How can I determine the largest number among three numbers using C++?
I need to simplify this
w=(z>((x>y)?x:y)?z:((x>y)?x:y));
Use the simple if condition
if
int w = x; if(y > w) w = y; if(z > w) w = z;
Where w is the max among three.
w