Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 532 Bytes

File metadata and controls

22 lines (12 loc) · 532 Bytes

Problem 13

You will be solving the given problem below.

Problem

We have a loud crying puppy in an apartment building. The "hour" parameter is the current hour time in the range 0...23. We will get in trouble if the puppy is crying and the time is before 7 or after 20.

Return true if we will get in trouble based on if the puppy is crying during a specfic time of day.

Example:

puppyCry(true, 6) --> true

puppyCry(true, 7) --> false

puppyCry(false, 6) --> false

Submission

Commit and push your solution to GitHub