- 链接地址:https://blog.csdn.net/qq_40661543/article/details/113780092
- 链接标题:输入月份,输出对应的季节(春夏秋冬)_输入月份,输出对应的季节-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:3735
文章浏览阅读6.9k次,点赞4次,收藏4次。1.输入月份,输出对应的季节(春夏秋冬)Scanner input = new Scanner(System.in);System.out.println(“请输入月份:”);int month = input.nextInt();switch (month) {case 1:case 2:case 3:System.out.println(“春”);break;case 4:case 5:case 6:System.out.println(“夏”);break;case 7:_输入月份,输出对应的季节
版权声明:本文发布于特牛生活网 内容均来源于互联网 如有侵权联系删除