判断为闰年的正确条件为:
A: year%4==0&&year%100!=0
B: (year%4==0&&year%100!=0)&&(year%400==0)
C: year%400==0
D: (year%4==0&&year%100!=0)||(year%400==0)
A: year%4==0&&year%100!=0
B: (year%4==0&&year%100!=0)&&(year%400==0)
C: year%400==0
D: (year%4==0&&year%100!=0)||(year%400==0)
举一反三
- 判断某年是否为闰年的表达式正确的是()。 A: year%4==0&&year%100!=0||year%400==0 B: year%4==0&&year%100=0||year%400!=0 C: year%4!=0&&year%100!=0||year%400==0 D: year%4==0&&year%100==0||year%400==0
- 某一年year是否闰年的表达式为() A: (year%4==0&&year%100!=0)||year%400==0 B: year%4==0 C: year%4==0&&year%100!=0 D: year%4==0||year%400==0
- 用变量year表示某一年,判别不是闰年的逻辑表达式有( ). A: (year%4||!(year%100))&&year%400 B: 61519 C: (year%4==0&&year%100!=0)||year%400==0 D: !((year%4==0&&year%100!=0)||year%400==0) E: (year%4!=0||year%100==0)&&year%400!=0
- 判断闰年表达式(year%4=0&&year%100!=0)||year%400==0是否正确
- 判定year是否为闰年的表达式是 A: year % 400 == 0 or year % 4 == 0 and year % 100 <> 0 B: year % 400 == 0 or year % 4 == 0 , year % 100 != 0 C: year % 400 == 0 or year % 4 == 0 and year % 100 != 0 D: year % 400 == 0 or year % 4 == 0 , year % 100 <> 0