Given an int
variable age
, print out the following messages depending on the value of age
:
age
is less than 18
, print "Child"
.age
is 18
or greater, but less than 65
, print "Adult"
.age
is 65
or greater, print "Senior"
.age
does not represent a valid age, print "Invalid age"
.Stuck? You may find these lessons helpful: