两个字符交换位置
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();
本文标题:2018-10-24
本文链接:https://www.haomeiwen.com/subject/vydwxqtx.html
网友评论