code.cpp 448 B

1234567891011
  1. /* Christmas Eve is almost upon us, so naturally we
  2. need to prepare some milk and cookies for Santa!
  3. Create a function that accepts a (year, month, day) of date and
  4. returns true if it's Christmas Eve (December 24th) and false otherwise.
  5. Keep in mind that month of Date is 0 based,
  6. meaning December is the 11th month while January is 0.
  7. */
  8. bool timeForMilkAndCookies(int year, int month, int day) {
  9. return (month==11) && (day ==24);
  10. }