Below is my pseudo code.
function highest(i, j, k) { if(i > j && i > k) { return i; } else
To find the greatest you need to look at exactly 3 ints, no more no less. You're looking at 6 with 3 compares. You should be able to do it in 3 and 2 compares.
int ret = max(i,j); ret = max(ret, k); return ret;