You are viewing a single comment's thread. Return to all comments →
This is my Solution, pretty basic, but its based on proccess of elimination
int max_of_four(int a, int b, int c, int d){ int ans; if (a > b && a > c && a > d) ans = a; else if (b > c && b > d) ans = b; else if (c > d) ans = c; else ans = d; return ans; }
Seems like cookies are disabled on this browser, please enable them to open this website
Functions
You are viewing a single comment's thread. Return to all comments →
This is my Solution, pretty basic, but its based on proccess of elimination