//声明“职位”数组,初始化为:"经理","项目主管","技术总监","财务主管"
string[] job = {"经理","项目主管","技术总监","财务主管"};
for (int i = 0; i < job.Length ; i++)
{
Console.Write(job[i]);//打印职位
}
string[] job = {"经理","项目主管","技术总监","财务主管"};
for (int i = 0; i < job.Length ; i++)
{
Console.Write(job[i]);//打印职位
}
2017-07-23
int y = 5;
while (y>=1)//请输入
{
Console.Write(y+" ");
y--;//请输入
while (y>=1)//请输入
{
Console.Write(y+" ");
y--;//请输入
2017-07-22
if (money >= 100000)
Console.WriteLine ("送一台微波炉!");
else if (money < 100000 & money >= 50000)
Console.WriteLine ("送一套茶具");
else if (money < 50000 & money >= 10000)
Console.WriteLine ("送一袋大米");
else
Console.WriteLine ("没有礼品");
Console.WriteLine ("送一台微波炉!");
else if (money < 100000 & money >= 50000)
Console.WriteLine ("送一套茶具");
else if (money < 50000 & money >= 10000)
Console.WriteLine ("送一袋大米");
else
Console.WriteLine ("没有礼品");