ΠΡΠΎΠ±ΠΎΠ²Π°Π» ΠΈ Ρ ΡΠ΅ΠΊΡΡΠΈΠΌ Π²Π°ΡΠΈΠ°Π½ΡΠΎΠΌ ΠΈ Ρ && ΠΎΠ΄ΠΈΠ½ ΡΠΈΠ³ ΠΎΡΠΈΠ±ΠΊΠ°.
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("ΠΠΈΠΌΠ°"); }
else if (month == 3 || month == 4 || month = 5)
{ System.out.println("ΠΠ΅ΡΠ½Π°"); }
else if (month == 6 || month == 7 || month == 8)
{ System.out.println("ΠΠ΅ΡΠΎ"); }
else if (month == 9 || month == 10 || month == 11)
{ System.out.println("ΠΡΠ΅Π½Ρ"); }
}
}