交换两个数的几种方法
摘要:第一种:利用第三方变量 1 int a = 10, b = 12; 2 int temp = 0; 3 temp = a; 4 a = b; 5 b = temp; 6 Console.WriteLine( a); 7 Console.WriteLine( b); 第二种:加加减减法 1 int a
阅读全文
posted @ 2018-11-22 00:32
posted @ 2018-11-22 00:32