题目:输入三个整数x,y,z,请把这三个数由小到大输出。 ___ java.util.*; public class lianxi15 { public static void main(String[] args) { input fnc = new input(); int x=0, y=0, z=0; System.out.print("输入第一个数字:"); x = fnc.input(); System.out.print("输入第二个...
public void compare(int x, int y, int z) { if(x>y) { int max =x; x=y; y=max; }if(x>z) { int max =x; x=z; z=max; }if(y>z) { int max = y; y=z; z=max; } System.out.println("由小到大:"+x+","+y+","+z); ...