package com.java.week01;
import java.util.Scanner;
/**
*
* @author Alfred
* @data 2018年7月22日下午11:20:28
* Description:3个整数从大到小的排序
* Version:1.0
*/
public class Demo05 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
System.out.print("请输入3个整数:");
int x = sc.nextInt();
int y = sc.nextInt();
int z = sc.nextInt();
if (x > y) {
int t = x;
x = y;
y = t;
}
if (x > z) {
int t = x;
x = z;
z = t;
}
if (y > z) {
int t = y;
y = z;
z = t;
}
System.out.println("从小到大的排序为:" + x + "<" + y + "<" + z);
}
}