- 博客(1)
- 收藏
- 关注
原创 根据指定月份,打印该月份所属的季节。 3,4,5 春季 6,7,8 夏季 9,10,11 秋季 12, 1, 2 冬季 if和switch各写一版
if方法:public class HomeworkDay08{ public static void main(String[] args){ java.util.Scanner s = new java.util.Scanner(System.in); System.out.print("请输入月份:"); int month = s.nextInt(); if(month == 3 || month == ...
2021-11-04 21:20:38 1010
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人