int a,b,c,d,e;
a<->b => (a>b)or(a<b)
c<->d => (c>d)or(c<d)
firstly think about the first statement:
that is (a>b)&&(c>d);
then e<->a
if (e>a) => {e>a,b; then c<->b if (c<b)=> {e>a,b>c>d;then a<->b
the smaller is the middle one} else {=>c>b,d,then c<->a the smaller is the middle one }
else(e<a)=>{a>e,b; just as the above methodes, we can get the middle one }
the other statements ,just the same as above.we get that the most sophiscated statement needs six comparations.