if (money >= 100000)
Console.WriteLine("送一台微波炉")
else if (money >= 50000 && money < 100000)
Console.WriteLine("送一套茶具")
else if (money >= 10000 && money < 50000)
Console.WriteLine("送一袋大米")
else
Console.WriteLine("没有礼品")
这个是对的,已经运行成功,由于字数限制,符号空格没打出
Console.WriteLine("送一台微波炉")
else if (money >= 50000 && money < 100000)
Console.WriteLine("送一套茶具")
else if (money >= 10000 && money < 50000)
Console.WriteLine("送一袋大米")
else
Console.WriteLine("没有礼品")
这个是对的,已经运行成功,由于字数限制,符号空格没打出
int x = 5;
int y = 6;
if (x >= y){
if (x >= 5)
Console.WriteLine("5");}
else
if (y >= 6)
{Console.WriteLine("6");}
else
Console.WriteLine("7");
int y = 6;
if (x >= y){
if (x >= 5)
Console.WriteLine("5");}
else
if (y >= 6)
{Console.WriteLine("6");}
else
Console.WriteLine("7");
2017-09-13
string[] strName = new string[]{"吴松"...};int[] intGrade = new int[]{ 89... };
int max = intGrade[0];int num=0;for (int i = 0; i < intGrade.Length; i++){if (intGrade[i] > max){
max = intGrade[i]; num = i; }}Console.Write("分数最高的是{0},分数是{1}", strName[num], intGrade[num]); //系统繁忙,请稍后重试 @T_T@
int max = intGrade[0];int num=0;for (int i = 0; i < intGrade.Length; i++){if (intGrade[i] > max){
max = intGrade[i]; num = i; }}Console.Write("分数最高的是{0},分数是{1}", strName[num], intGrade[num]); //系统繁忙,请稍后重试 @T_T@