题目内容

} 根据一个年份和月份,求出该月的天数。public class DaysTest {public static void main(String[] args) {int year=2017,month=2; //测试:2017年,2月switch (month){: //2月份,需要进行闰年判定if( 能被4整除且不能100 或 能被400 )System.out.println("29");else System.out.println("28");break;case 4: case 6: case 9:case 11: //4月、6月、9月、11月的天数是30天System.out.println("30");;default://其他月份天数是31天System.out.println("31");} } }

查看答案
更多问题

根据散热的原理,如何降低高热患者的体温?

O3和O2属于同素异形体。

A. 对
B. 错

在地平面上的臭氧会产生烟雾并破坏其他物质,因此是有害的。

A. 对
B. 错

下列关于市场经济的论述,不正确的是( )。

A. 是生产与交换的统一
B. 在广泛的社会分工基础上进行
C. 以市场需求为导向
D. 以政府宏观调控为主

答案查题题库