importjava.util.*;publicclasska{/***@paramargs*/publicstaticvoidmain(String[]args){//TODOAuto-generatedmethodstubinta;intb;intc;Scannerinput=newScanner(System.in);System....
import java.util.*;
public class ka {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int a;
int b;
int c;
Scanner input =new Scanner(System.in);
System.out.println("请输入a=" );
a = input.nextInt();
System.out.println("请输入b=" );
b= input.nextInt();
System.out.println("请输入c=" );
c = input.nextInt();
if ( a
int d=a;
a=b;
b=d;
//while (i <=100) {
//System.out.println("第" + i +"遍说:我能行");
// i = i+1;
} if (a
int d=a;
a=c;
c=d;
}if (b
int d=b;
b=c;
c=d;
} System.out.println("a=" );
System.out.println("b=" );
System.out.println("c=" );
}
}
不知道错在哪里?
展开