namespace Test
{
class Program
{
static void Main(string[] args)
{
double x, y;
x = y = 2;//从右向左赋值,x、y的值都是2
x /= 0.5;
y += 2;
Console.WriteLine(x-y);
Console.ReadLine();
}
}
}
{
class Program
{
static void Main(string[] args)
{
double x, y;
x = y = 2;//从右向左赋值,x、y的值都是2
x /= 0.5;
y += 2;
Console.WriteLine(x-y);
Console.ReadLine();
}
}
}
2015-12-24