#作业目标:不用中间变量写程序交换两个变量的值
1.用中间变量的情况
num1 = num1 -num2;//num1=10-5=5
num2 = num1 +num2;//num2=5+5=10
Console.WriteLine("num1="+num1+",num2="+num2);
Console.ReadKey();
1.用中间变量的情况
num1 = num1 -num2;//num1=10-5=5
num2 = num1 +num2;//num2=5+5=10
Console.WriteLine("num1="+num1+",num2="+num2);
Console.ReadKey();