Skip to content

Instantly share code, notes, and snippets.

@e-tverdokhleb
Created November 15, 2015 03:20
Show Gist options
  • Save e-tverdokhleb/307de36458ad0f5cf9a5 to your computer and use it in GitHub Desktop.
Save e-tverdokhleb/307de36458ad0f5cf9a5 to your computer and use it in GitHub Desktop.
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