static void Main(string[] args)
{
int year = 2004;//年份
string text = year % 4 == 0 && year % 100 != 0 || year % 400 == 0 ? "閏年" : "不是閏年";//請填寫代碼
Console.WriteLine("今年是{0}", text);
}
{
int year = 2004;//年份
string text = year % 4 == 0 && year % 100 != 0 || year % 400 == 0 ? "閏年" : "不是閏年";//請填寫代碼
Console.WriteLine("今年是{0}", text);
}
2016-04-25
string[] ns={"吳松", "錢東宇", "伏晨", "陳陸", "周蕾", "林日鵬", "何昆", "關欣"};
int[] ss={89,90,98,56,60,91,93,85};
int pos=0;
for(int i=0; i<ss.Length; ++i)
{
if(ss[pos]<ss[i]) pos=i;
}
Console.Write("分數最高的是"+ns[pos]+",分數是{0}",ss[pos]);
int[] ss={89,90,98,56,60,91,93,85};
int pos=0;
for(int i=0; i<ss.Length; ++i)
{
if(ss[pos]<ss[i]) pos=i;
}
Console.Write("分數最高的是"+ns[pos]+",分數是{0}",ss[pos]);
namespace Test
{
class Program
{
static void Main(string[] args)
{
int age = 4;//年齡
if (age < 6||age > 60)
Console.WriteLine("請坐愛心座!");
else
Console.WriteLine("請堅持一下!");
}
}
}
{
class Program
{
static void Main(string[] args)
{
int age = 4;//年齡
if (age < 6||age > 60)
Console.WriteLine("請坐愛心座!");
else
Console.WriteLine("請堅持一下!");
}
}
}
2016-04-23
這個的意思就相當于,我要做個評估,但是自己沒有這個資質,我就委托第三方公司(hasNopass)去做,然后第三方公司評估完給我結果(即hasNopass=true or false),然后我來判斷結果就可以了。
2016-04-19