string[] names = { "吴松", "钱东宇", "伏晨", "陈陆", "周蕊", "林日鹏", "何坤", "关欣" };
int[] score = { 89, 90, 98, 56, 60, 91, 93, 85 };
int x = 0;
for (int i = 0; i < names.Length; i++)
{
if (score[i] >= score[x])
x = i;
}
Console.Write("分数最高的是" + names[x] + ",分数是" + score[x]);
int[] score = { 89, 90, 98, 56, 60, 91, 93, 85 };
int x = 0;
for (int i = 0; i < names.Length; i++)
{
if (score[i] >= score[x])
x = i;
}
Console.Write("分数最高的是" + names[x] + ",分数是" + score[x]);
Service Unavailable
The server is temporarily unable to service your request. Please try again later.
Reference #60.75ab0f03.a6486c2.1497417002
The server is temporarily unable to service your request. Please try again later.
Reference #60.75ab0f03.a6486c2.1497417002
for (int y = 1; y <= 7; y++)
{
for (int x = 1; x <=y; x++) 直接把内循环的 判断条件改下,使得内循环 受外循环控制
{
for (int x = 1; x <=y; x++) 直接把内循环的 判断条件改下,使得内循环 受外循环控制
2017-06-13
在VS中直接就输出了 不是非得在一行中显示 这样写没有错误
Console.WriteLine("我的工资奖金总额是{0}元",salary + prize);
Console.WriteLine("我的税后收入是{0}元",salary + prize - tax);
Console.WriteLine("我的工资奖金总额是{0}元",salary + prize);
Console.WriteLine("我的税后收入是{0}元",salary + prize - tax);
2017-06-13
代码没有错误,注意第十二行要这么写(任务中也说了)
int x =(int) d + 1;//将double类型的d强制转换为int类型之后再计算
运行结果:3
int x =(int) d + 1;//将double类型的d强制转换为int类型之后再计算
运行结果:3
2017-06-13
string text=((year%4)==0&&(year%100!=0)||(year%400==0))?"闰年":"平年";
2017-06-13