using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _20181024
{
class Program
{
static void Main(string[] args)
{
int number1 = 10;
int number2 = 5;
Console.WriteLine("number1={0},number2={1}", number1, number2);
number1 = number1 + number2;//number1 = 15
number2 = number1 - number2;//number2 = 10
number1 = number1 - number2;//number1 = 5
Console.WriteLine("↓替换后");
Console.WriteLine("number1={0},number2={1}", number1, number2);
Console.ReadKey();
}
}
}
网友评论