?string[] name = new string[] { "吳淞" ,"錢東宇","浮沉","陳璐", "周蕊","林日新" };? ? ? ? ? ? ?int[] score = new int[] { 60, 56, 90, 89, 13, 56 };? ? ? ? ? ? ?int max = 0;?? ? ? ? ? ? ?for(int i=0;i<score.Length;i++)? ? ? ? ? ? ?if (score[i]>max)? ? ? ? ? ? ?{? ? ? ? ? ? ? ? ?max = score[i];? ? ? ? ? ? ? ? ?Console.WriteLine("{0}的成績(jī)最高,是{1}", name[i], max);? ? ? ? ? ? ?}
- 4 回答
- 0 關(guān)注
- 1411 瀏覽
添加回答
舉報(bào)
0/150
提交
取消