input 3 numbers output order least to greatest
Can someone please explain why when i put in 2,1,3 it doesn't exicute anything? To me it looks right, the debug doesn't stop, it just keeps going. it Should output 1,2,3.
if ((num1<num2) && (num2<num3) && num3>num1)
System.out.println(num1+" "+num2+" "+num3);
if ((num3<num1) && (num1<num2)&& num2 > num3)
System.out.println(num3+" "+num1+" "+num2);
if ((num2<num3) && (num3<num1) && num1>num2)
System.out.println(num2+" "+num3+" "+num1);