In the United States, you are legally an adult once you turn 18 years old.
Given an already-declared int
variable named age
containing a person's age, print "Adult" if they are legally an
adult and "Not Adult" if they are not.
However, if an already-declared boolean
variable whisper
is true
, then don't print anything at all.
Stuck? You may find these lessons helpful: