topic:
Enter 3 numbers a, b, c and output in order of size.
Code:
import java.util.Scanner;public class lianxi34 {public static void main(String[] args) { Scanner s = new Scanner(System.in); System.out.println("Please enter 3 integers: "); int a = s.nextInt(); int b = s.nextInt(); int c = s.nextInt(); if(a < b) { int t = a; a = b; b = t; } if(a < c) { int t = a; a = c; c = t; } System.out.println("Output from large to small order:"); System.out.println(a + " " + b + " " + c);}}The above example explanation of the above java input 3 numbers a, b, c and output in order of size is all the content I share with you. I hope you can give you a reference and I hope you can support Wulin.com more.