double money = 60000.00;//存款金额
if (money >= 100000)//请在这里补充多重条件判断
Console.WriteLine("送一台微波炉");
else if (money >= 50000 && money < 100000)
Console.WriteLine("送一套茶具");
else if (money >= 10000 && money < 50000)
Console.WriteLine("送一袋大米");
else
Console.WriteLine("没有礼品");
if (money >= 100000)//请在这里补充多重条件判断
Console.WriteLine("送一台微波炉");
else if (money >= 50000 && money < 100000)
Console.WriteLine("送一套茶具");
else if (money >= 10000 && money < 50000)
Console.WriteLine("送一袋大米");
else
Console.WriteLine("没有礼品");
最赞回答 / 以雪之名
static void Main(string[] args) { Console.Write("蜀国”五虎将”是:"); string[] names = new string[] { "关羽", "张飞", "赵云", "马超", "黄忠" }; for (int i = 0; i < names.Length; i++) { Console.Wri...
2016-12-04
string[] name=new string[8] {"吴松", "钱东宇", "伏晨", "陈陆", "周蕊", "林日鹏", "何昆", "关欣"};
int[] num=new int[8] {29, 90, 98, 56, 60, 91, 93, 85};
int max, index=0;max =num[0];for (int i=1; i<8; i++){if(num[i]>max){max=num[i];index =i;}}
Console.WriteLine("分数最高的是{0},分数是{1}", name[index], max);我自己编程软件商都对了这里就显示错误
int[] num=new int[8] {29, 90, 98, 56, 60, 91, 93, 85};
int max, index=0;max =num[0];for (int i=1; i<8; i++){if(num[i]>max){max=num[i];index =i;}}
Console.WriteLine("分数最高的是{0},分数是{1}", name[index], max);我自己编程软件商都对了这里就显示错误