2018-10-24
2018-11-08 本文已影响0人
be1058558528
两个字符交换位置
int a = 5, b = 10;
Console.WriteLine("num1="+a + "num2="+b);
a = a + b;
b = a - b;
a = a - b;
Console.WriteLine("num1=" + a + "num2=" + b);
Console.ReadKey();
两个字符交换位置
int a = 5, b = 10;
Console.WriteLine("num1="+a + "num2="+b);
a = a + b;
b = a - b;
a = a - b;
Console.WriteLine("num1=" + a + "num2=" + b);
Console.ReadKey();