static void Main(string[] args)
{
int year = 2015;//年份
string text;
text=year%4==0?"閏年":"平年";//請填寫代碼
Console.WriteLine("今年是{0}",text);
}
{
int year = 2015;//年份
string text;
text=year%4==0?"閏年":"平年";//請填寫代碼
Console.WriteLine("今年是{0}",text);
}
2018-10-09
static void Main(string[] args)
{
int y = 5;
while (y<6&&y>0)//請輸入
{
Console.Write(y+" ");
y--;//請輸入
}
}
{
int y = 5;
while (y<6&&y>0)//請輸入
{
Console.Write(y+" ");
y--;//請輸入
}
}
2018-10-09
int x=1;
bool a = ++x * x > 3; //2>3
bool b = a; //能使b等a這樣的'2>3'就好
Console.WriteLine(a==b);
看來剛剛想多又想偏了。。。。。
bool a = ++x * x > 3; //2>3
bool b = a; //能使b等a這樣的'2>3'就好
Console.WriteLine(a==b);
看來剛剛想多又想偏了。。。。。
2018-10-08