Season Finder
Given a month number, determine which season it falls into:
Winter
: December (12), January (1), February (2)Spring
: March (3), April (4), May (5)Summer
: June (6), July (7), August (8)Autumn
: September (9), October (10), November (11)
The program should output the season's name. If the input number is outside the range [1, 12], the program should output Invalid month
.
Input | Output |
---|---|
3 | Spring |
10 | Autumn |
-1 | Invalid month |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB