You are viewing a single comment's thread. Return to all comments →
my solution without using sort or max function from the library:
int max_of_two(int a, int b){ return a > b ? a : b; } int max_of_four(int a, int b, int c, int d){ return max_of_two(max_of_two(a,b), max_of_two(c,d)); }
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 →
my solution without using sort or max function from the library: