Created
November 15, 2015 03:20
-
-
Save e-tverdokhleb/307de36458ad0f5cf9a5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
public static void main(String[] args) { | |
System.out.println(isSpring(4)); | |
} | |
static int isSpring(int month) { | |
int result = -1; | |
if ((month > 0) && (month <= 12)) { | |
if ((month>=3)&&(month<=5)){ | |
result = 1; | |
}else result = 0; | |
} | |
return result; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment