Kotlinlearncs.online LogoJava
Return to List

Homework: Print Adult Or Not

Created By: Geoffrey Challen
/ Version: 2021.8.0

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.

Related Lessons

Stuck? You may find these lessons helpful: