string[] job =new string[] {"经理","项目主管","技术总监","财务主管"};
for (int i = 0; i < job.Length ; i++)
{
Console.WriteLine(job[i]);//打印职位
for (int i = 0; i < job.Length ; i++)
{
Console.WriteLine(job[i]);//打印职位
2016-10-25
if (x >= y)
{
if (x >= 5)
Console.WriteLine("5");
}
else
{
if (y >= 6)
Console.WriteLine("6");
else
Console.WriteLine("7");
}
{
if (x >= 5)
Console.WriteLine("5");
}
else
{
if (y >= 6)
Console.WriteLine("6");
else
Console.WriteLine("7");
}
2016-10-25
else if (job == "处长")
{
Console.WriteLine("发蛋黄月饼");
}
else if(job == "科长")//请输入
{
Console.WriteLine("发枣泥月饼");
}
else //请输入
{
Console.WriteLine("发五仁月饼");
}
{
Console.WriteLine("发蛋黄月饼");
}
else if(job == "科长")//请输入
{
Console.WriteLine("发枣泥月饼");
}
else //请输入
{
Console.WriteLine("发五仁月饼");
}
2016-10-25
char sex='男';//性别
int age = 21;//年龄
if(sex!='男')//请填写条件
{
if (age >= 20)
int age = 21;//年龄
if(sex!='男')//请填写条件
{
if (age >= 20)
2016-10-25
double price = 4388;//手机的售价
double salary = 4978.67;//本月实发工资
if(salary>=price)//请在这里补充条件判断
{
Console.WriteLine("这月工资够买手机!");
}
else
{
Console.WriteLine("这月工资不够买手机!");
}
double salary = 4978.67;//本月实发工资
if(salary>=price)//请在这里补充条件判断
{
Console.WriteLine("这月工资够买手机!");
}
else
{
Console.WriteLine("这月工资不够买手机!");
}
{
//声明整型数组,保存一组整数
int[] num = new int[] { 3,34,42,2,11,19,30,55,20};
for(int x=0;x<num.Length;x++)
if num[x]%2==0
Console.WriteLine(num[x]+",");//请完善代码,循环打印数组中的偶数
}
//声明整型数组,保存一组整数
int[] num = new int[] { 3,34,42,2,11,19,30,55,20};
for(int x=0;x<num.Length;x++)
if num[x]%2==0
Console.WriteLine(num[x]+",");//请完善代码,循环打印数组中的偶数
}