int year = 2015;//年份
string text=((year%4==0&&year%400!=0)||(year%400==0))?"闰年":"平年";
Console.WriteLine("今年是{0}",text);
string text=((year%4==0&&year%400!=0)||(year%400==0))?"闰年":"平年";
Console.WriteLine("今年是{0}",text);
2018-03-07
if(salary>=price)
{
Console.WriteLine("这月工资够买手机!");
}
else
{
Console.WriteLine("这月工资不够买手机!");
}
{
Console.WriteLine("这月工资够买手机!");
}
else
{
Console.WriteLine("这月工资不够买手机!");
}