double x, y;
x = y = 2;//从右向左赋值,x、y的值都是2
x /= 0.5;
y -= 2;
Console.WriteLine(x-y);
x = y = 2;//从右向左赋值,x、y的值都是2
x /= 0.5;
y -= 2;
Console.WriteLine(x-y);
2018-01-22
int[] score = new int[]{89,90,98,56,60,91,93,85};
int k=0;
for(int i=1;i<score.Length;i++)
{
if(score[k]<=score[i])
k=i;
}
Console.Write(,score[k]);
int k=0;
for(int i=1;i<score.Length;i++)
{
if(score[k]<=score[i])
k=i;
}
Console.Write(,score[k]);
2018-01-22
Console.WriteLine("{0}{1}{2}",ch[1,1],ch[1,2],ch[2,0]);
2018-01-17