62,615
社区成员
发帖
与我相关
我的任务
分享
class change2{
public static void main(String[] args){
int a=26,b=32;
double x=a,y=b;
x = x/2 + y/2;
y = x - y/2;
x = x - y;
x = 2*x;
y = 2*y;
a=(int)x;
b=(int)y;
System.out.println("a=26,b=32,交换后a="+a+",b="+b);
}
}
class change2{