最新回答 / 慕容4420733
static void Main(string[] args) { string[] name =new string[]{"景珍","林惠洋","成蓉","洪南昌","龙玉民", "单江开","田武山","王三明"}; int[] inta=new int[]{90,65,88,70,46,81,100,68}; double avg=0.00; int sum=0; ...
2021-05-13
int max = num[0];
string maxName = name[0];
for (int i = 0; i < num.Length; i++)
{
if (num[i] > max)
{
max = num[i];
maxName = name[i];
}
}
string maxName = name[0];
for (int i = 0; i < num.Length; i++)
{
if (num[i] > max)
{
max = num[i];
maxName = name[i];
}
}