• + 0 comments
    {
        int numList[4] = {a, b, c, d};
        int result = 0;
        for (int i = 0; i < 4; i++)
        {
            for (int j = 0; j < 4; j++)
            {
                if (numList[i] > numList[j] && numList[i] > result)
                {
                    result = numList[i];
                }
                else 
                {
                    continue;
                }
            }
        }
        return result;
    }