Well, you could sort them, that's an easy way to know which is the lowest, highest and which is in middle
Code:if (i2 > i3) // swap i2 and i3 if (i1 > i2) // swap i1 and i2 if (i2 > i3) // swap i2 and i3 /* A: i1 is lowest number, i2 is middle, i3 is highest */