Question: I need help with this question. It is in C++ pls. ( begin{array}{rll}1 & / * * & 2 & * & text {
I need help with this question. It is in C++ pls.

\( \begin{array}{rll}1 & / * * & \\ 2 & * & \text { Given two int values, return whichever value is larger. } \\ 3 & * & \text { However, if the two values have the same remainder when } \\ 4 & * & \text { divided by } 5 \text {, then the return the smaller value. } \\ 5 & * & \text { However, in all cases, if the two values are the same, } \\ 6 & * & \text { return } 0 . \\ 7 & * / & \\ 8 & \text { int max_mod_five(int a, int b) } \\ 9 & \{ & \\ 10 & & \text { int result; } \\ 11 & & / / \text { Add your code here } \\ 12 & & \\ 13 & & \text { return result; } \\ 14 & \} & \end{array} \)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
