double x = 13.9, y = 24.4;
double sum = x + y;
double avg = 19.15;
Console.WriteLine(avg);
double sum = x + y;
double avg = 19.15;
Console.WriteLine(avg);
2016-11-12
这题可以,考查的是细节问题,看了好大一会也没看出哪里错,谁知道原来是这。——————打印一点出了错。多亏有人指点啊
2016-11-10
int[] score= {89,90,98,56,60,91,93,85};
string[] name = {"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"}; int i;int m = score[0],index=0; for(i=1;i<8;i++) { if(score[i]>m)
{ m = score[i]; index = i; } }Console.WriteLine("分数最高的是{0},分数是{1}",name[index],m);Console.ReadKey ( );
string[] name = {"吴松","钱东宇","伏晨","陈陆","周蕊","林日鹏","何昆","关欣"}; int i;int m = score[0],index=0; for(i=1;i<8;i++) { if(score[i]>m)
{ m = score[i]; index = i; } }Console.WriteLine("分数最高的是{0},分数是{1}",name[index],m);Console.ReadKey ( );