最赞回答 / 丨羁绊灬千年梦丨
这个运行是无问题的,只是在下面这段程序里: Console.Write("分数最高的是" +name + ",分数是" + max); 这个“,分数是”中的逗号是中文的,写成英文的就会输出错误
2019-11-19
{
class Program
{
static void Main(string[] args)
{
监","财务主管"
string[] job ={"经理","项目主管","技术总监","财务主管"};
for (int i = 0; i <job.length ; i++)
{
Console.Write(job[i]);//打印职位
}
}
}
}
哪里错了,MD
class Program
{
static void Main(string[] args)
{
监","财务主管"
string[] job ={"经理","项目主管","技术总监","财务主管"};
for (int i = 0; i <job.length ; i++)
{
Console.Write(job[i]);//打印职位
}
}
}
}
哪里错了,MD
2019-11-08
int[] score = new int[] {89,39,100,51,94,65,70 };//分数
Console.Write("不及格的有:");
for (int i = 0; i <score.Length; i++)
{
if(score[i]<60)//筛选条件
Console.Write(score[i]+",");
}
Console.Write("不及格的有:");
for (int i = 0; i <score.Length; i++)
{
if(score[i]<60)//筛选条件
Console.Write(score[i]+",");
}
2019-10-25
static void Main(string[] args)
{
for (int x=0;x<=12;x++)//请填写代码
{
Console.WriteLine(x+" ");
}
}
{
for (int x=0;x<=12;x++)//请填写代码
{
Console.WriteLine(x+" ");
}
}
2019-10-24
if(money<10000.00)
Console.WriteLine("没有礼品");
else if(money<50000.00)
Console.WriteLine("送一袋大米");
else if(money<100000.00)
Console.WriteLine("送一套茶具");
else
Console.WriteLine("送一台微波炉");
Console.WriteLine("没有礼品");
else if(money<50000.00)
Console.WriteLine("送一袋大米");
else if(money<100000.00)
Console.WriteLine("送一套茶具");
else
Console.WriteLine("送一台微波炉");
最赞回答 / qq_慕仰2092325
//学生姓名 string[] Name = new string[] { "景珍", "林惠洋", "成蓉", "洪南昌", "龙玉民", "单江开", "田武山", "王三明" }; int[] Score = new int[] { 90, 65, 88, 70, 46, 81, 100, 68 }; ...
2019-10-18