**1.使用临时变量**
1. Console.WriteLine("请输入两个整数x,y");
2. int x = int.Parse(Console.ReadLine());//使用 int.parse(string s) 将输入的字符串为int值
3. int y = Convert.ToInt32(Console.ReadLine());//使用Convert.ToInt32(string value) 将输入的字符串转化为int值
4. Console.WriteLine("x={0},y={1}", x, y);
5. int temp;//定义一个临时变量temp
6. temp = x; //将x的值赋给temp
7. x = y; //将y的值赋给x
8. y = temp; //将temp存放的x的值赋给y
9.