using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{ class Program { static void Main(string[] args)
{ int number1 = 10;
int number2 = 5;
//交换前输出
Console.WriteLine("number:" + number1 + "number2" + number2);
int temp; temp = number1;
number2 = number1;
number2 = temp;
Console.WriteLine("number:" + number1 + "number2" + number2);
Console.ReadKey();
}
}
}
网友评论