• + 7 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));
    }