for (int x=1;x<=12 ;x++ )//请填写代码
{
Console.WriteLine(x+" ");
}
}
{
Console.WriteLine(x+" ");
}
}
2016-09-02
int year = 2015;//年份
string text;
text=year%4==0?"闰年":"平年";
//请填写代码
Console.WriteLine("今年是{0}",text);
这个是正确的,已验证
string text;
text=year%4==0?"闰年":"平年";
//请填写代码
Console.WriteLine("今年是{0}",text);
这个是正确的,已验证
2016-08-31
static void Main(string[] args)
{
int year = 2015;//年份
string text;
text=year%=4?"闰年":"平年";
//请填写代码
Console.WriteLine("今年是{0}",text);
{
int year = 2015;//年份
string text;
text=year%=4?"闰年":"平年";
//请填写代码
Console.WriteLine("今年是{0}",text);
2016-08-31
double money = 60000.00;//存款金额
string a="没有"
if(money>=100000){ Console.WriteLine(a+"送一台微波炉");
}else if(money>=50000){Console.WriteLine(a+"送一套茶具");
}else if(money>=10000){Console.WriteLine(a+"送一袋大米");}else{Console.writeLine("没有礼品");}
string a="没有"
if(money>=100000){ Console.WriteLine(a+"送一台微波炉");
}else if(money>=50000){Console.WriteLine(a+"送一套茶具");
}else if(money>=10000){Console.WriteLine(a+"送一袋大米");}else{Console.writeLine("没有礼品");}