已采纳回答 / Valder_Fields
int[] score = new int[] { 89, 90, 98, 56, 60, 91, 93, 85 }; string[] name = new string[] { "吴松", "钱东宇", "伏晨", "程陆", "周蕊", "林日鹏", "何昆", "关欣" }; //首先char是字符,string才是字符串 int k = 0; int max = score[0]; f...
2016-09-10
string text;//年份
text=year % 4==0 ? "闰年" : "平年"; //请填写代码
text=year % 4==0 ? "闰年" : "平年"; //请填写代码
2016-09-09
int maxS = 0;
string maxN = "wu";
for(int i = 0; i < score.Length; i++){
if(maxS < score[i]){
maxS = score[i];
maxN = name[i];
}
}
Co..("分..{0},分..{1}", maxN, maxS);
string maxN = "wu";
for(int i = 0; i < score.Length; i++){
if(maxS < score[i]){
maxS = score[i];
maxN = name[i];
}
}
Co..("分..{0},分..{1}", maxN, maxS);
年薪百万: Console.WriteLine(year/4);//求年份除以4的余数
敲的漂亮:onsole.WriteLine("year/4的余数为{0}",year/4);
敲的漂亮:onsole.WriteLine("year/4的余数为{0}",year/4);
2016-09-09