题目内容
(请给出正确答案)
[主观题]
输入年份,输出是否是闰年。闰年判断条件为:能被400整除或能被4整除但不能被100整除的年份。
答案
declare @y int set @y=1998 if @y%4<>0 print 'no' else if @y%100<>0 print 'yes' else if @y % 400 =0 print 'yes' else print 'n0'
![](https://lstatic.shangxueba.com/sxbcn/h5/images/tips_org.png)
第1题
第2题
第4题
A.(year%400==0) or (year%4==0 and year % 100!=0)
B.year%400==0 and year%4==0 and year % 100!=0
C.(year//400==0) or (year//4==0 and year//100!=0)
D.year//400==0 or year//4==0 and year//100!=0
第5题
第6题
第7题
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!