运行不出来
追答那我给你一个用控制语句语句写的
public class Sort{
public static void main(String args[]){
Scanner in= new Scanner(System.in);
System.out.println("请输入3个整数:");
int a,b,c;
int max,other1,other2;
a=in.nextInt();
b=in.nextInt();
c=in.nextInt();
if(a>b&&a>c){
max=a;
other1=b;
other2=c;
}
else if(b>a&&b>c){
max=b;
other1=a;
other2=c;
}
else{
max=c;other1=a;other2=b
}
iif(other1>other2){
System.out.println(other2);
System.out.println(other1);
}
System.out.println(max);
}
}
非常感谢,现在才看见,已经可以运行了
本回答被网友采纳