hi all..

is there any easy way of comparing diff integers ? like

i have four int a=1,b=4,c=1,d=9;

and if i use if else it will be long way is there any sort ways of doing these ?

i need something like

if(a>b&&c>a&&d>a)

{

//a is greater

}

else if(b>a&&b>c&&b>c)

{

//b is greater

}

else if(a==b&&a>c&&a>d)

{

//a and b are equal

}

else if(a==b&&a==c&&a>d)

{

//a,b and c are equal

}

.

.

.etc

can anyone can help me with this please?