divider

Objective

Ask the user to enter their birth month (as a number). Use conditional statements to print a seasonal message.

Skills to Practice

  • icon Evaluating Boolean expressions
  • icon Branching with Selection Statements
divider

Tasks

  • icon Create a new project named sprint-2-1
  • icon Complete the following tasks:
    • icon Prompt the user for their birth month as an integer (1-12).
    • icon Depending on the number, display one of the following messages:
      • icon 1, 2, or 12: "You're a Winter baby!"
      • icon 3 - 5: "You're a Spring baby!"
      • icon 6 - 8: "You're a Summer baby!"
      • icon 9 - 11: "You're a Fall baby!"
divider

Sample Output

Sample Output
Enter your birth month (1-12): 12 [Enter]
You're a winter baby! ❄️

Begin Challenge