package com.hp.demo;
import java.util.Scanner;
public class Demo {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
System.out.println("输入数字a为:");
int a = s.nextInt();
System.out.println("输入数字b为:");
int b = s.nextInt();
System.out.println("输入数字c为:");
int c = s.nextInt();
if (a < b) {
int t = a;
a = b;
b = t;
}
if (a < c) {
int t = a;
a = c;
c = t;
}
if (b < c) {
int t = b;
b = c;
c = t;
}
System.out.println("排序为:");
System.out.println(c + " " + b + " " + a);
}
}