The max(x,y) function can be used to find the highest value of x and y:
Example
cout << max(5, 10);
And the
min(x,y) function can be used to find the lowest value of x and y:
Example
cout << min(5, 10);
Practice Excercise Practice now
The max(x,y) function can be used to find the highest value of x and y:
min(x,y) function can be used to find the lowest value of x and y:
Practice Excercise Practice now