package com.javarush.task.task04.task0411;
/*
Времена года на Терре
*/
public class Solution {
public static void main(String[] args) {
checkSeason(12);
checkSeason(4);
checkSeason(7);
checkSeason(10);
}
public static void checkSeason(int month) {
if(month == 12 || month == 1 || month == 2 ){
System.out.println("зима");
}
if else (month<=5 && month=>3) {
System.out.println("весна");
}
if(month<=8 && month>5){
System.out.println("лето");
}
else{
System.out.println("осень");
}
}
}
package com.javarush.task.task04.task0411;
/*
Времена года на Терре
*/
public class Solution {
public static void main(String[] args) {
checkSeason(12);
checkSeason(4);
checkSeason(7);
checkSeason(10);
}
public static void checkSeason(int month) {
if(month == 12 || month == 1 || month == 2 ){
System.out.println("зима");
}
if else (month<=5 && month=>3) {
System.out.println("весна");
}
if(month<=8 && month>5){
System.out.println("лето");
}
else{
System.out.println("осень");
}
}
}