+ 1
/* Java */ Scanner x = new Scanner(System.in); int a, b, c; a = x.nextInt(); b = x.nextInt(); c = x.nextInt(); if(a<b && a<c) if(b<c) System.out.print(a+""+b+""+c); else System.out.print(a+""+c+""+b); if(b<a && b<c) if(a<c) System.out.print(b+""+a+""+c); else System.out.print(b+""+c+""+a); if(c<a && c<b) if(a<b) System.out.print(c+""+a+""+b); else System.out.print(c+""+b+""+a); /* I didn't use Math.min(); xD but it's the same if you change it for '<' */
10th Mar 2018, 1:24 AM
jaaxdev
jaaxdev - avatar