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
同学笔记中的“一缕火光焚燎原”明显是错误的代码,为什么还有那么多人点赞。
double x, y;
x = y = 2;//从右向左赋值,x、y的值都是2
x /= 0.5;
y *= 2;
Console.WriteLine(x-y);
这代码输出的是0,不是4!
double x, y;
x = y = 2;//从右向左赋值,x、y的值都是2
x /= 0.5;
y *= 2;
Console.WriteLine(x-y);
这代码输出的是0,不是4!
2019-10-16
已采纳回答 / ajaxstyle
static void Main(string[] args) { string[,] name_score = { {"吴松", "89"}, {"钱东宇", "90"}, {"伏晨", "98"}, {"陈陆", "56"}, {"周蕊", "60"}, {"林日鹏", "91"}, ...
2019-10-15