• + 3 comments

    Here is how I did it :

    int max_of_four(int a, int b, int c, int d){
        int temp1, temp2;
        temp1 = (a > b) ? a : b;
        temp2 = (c > d) ? c : d;
        return ((temp1 > temp2) ? temp1 : temp2);
    }