double money = 600000.00;//存款金额
if(money>=1000000)
Console.Write("送一台微波炉");
else if(money>=50000&&money<=1000000)
Console.Write("送一套茶具");
else if(money>=10000&&money<50000)
Console.Write("送一袋大米");
else Console.Write("没有礼品");
}
}
}
if(money>=1000000)
Console.Write("送一台微波炉");
else if(money>=50000&&money<=1000000)
Console.Write("送一套茶具");
else if(money>=10000&&money<50000)
Console.Write("送一袋大米");
else Console.Write("没有礼品");
}
}
}
最赞回答 / 红鼻子小黑
看作者的这张图片,这几种方式都可以,你这种多了一个"=",应该是 string[] job = new string[4] { "经理","项目主管","技术总监","财务主管"}; <...图片...>
2024-07-18
最新回答 / one突333
using System;using System.Collections.Generic;using System.Text;namespace projAboveAvg{ class Program { static void Main(string[] args) { int[] score = {90,65,88,70,46,81,100,68}; string[] name={"景珍","林惠洋","成蓉","洪...
2024-06-20
for(int x=1;x<8;x++)//请完善代码
{
for(int y=1;y<8;y++)
{ int m=8-x;
if (y==x||y==m)
if (y==7)
Console.WriteLine("o");
else
Console.Write("o");
else if (y==7&&m!=7)
Console.WriteLine(".");
else
Console.Write(".");} }
{
for(int y=1;y<8;y++)
{ int m=8-x;
if (y==x||y==m)
if (y==7)
Console.WriteLine("o");
else
Console.Write("o");
else if (y==7&&m!=7)
Console.WriteLine(".");
else
Console.Write(".");} }
最新回答 / weixin_慕粉2246583
namespace Test{ class Program { static void Main(string[] args) { double money = 60000.00;//存款金额 string x=""; if(money>=100000) x="送一台微波炉"; else if(money>=50000) x...
2024-06-11
最新回答 / 慕侠1157767
using System;using System.Collections.Generic;using System.Text;namespace Test{ class Program { static void Main(string[] args) { //请完善代码 for (int i = 0; i < 7; i++) { for (int j = 0; j < 7; j...
2024-03-15