2.不使用第三个变量,交换两个变量的值。 int a = 5; int b = 10; a = a + b; //a=15,b=10; b = a - b; //a=15,b=5; a = a - b; //a=10,b=5;