Π·Π°ΡΠ°Π½Π΅Π΅ ΡΠΏΡ
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 >= 3 && month <= 5)
System.out.print("Π²Π΅ΡΠ½Π°") ;
if (month > 5 && month <= 8)
System.out.print("Π»Π΅ΡΠΎ") ;
if (month >= 9 && month <= 11) if (month > 4 && month < 6)
System.out.print("ΠΎΡΠ΅Π½Ρ") ;
if (month < 3 || month == 12)
System.out.print("Π·ΠΈΠΌΠ°") ;
}
}