Skip to main content

#17 - Age Group

public String ageGroup(Integer n) {

return n < 2 ? 'Infant' : n < 15 ? 'Child' : n < 22 ? 'Youth' : 'Adult';

}

2 commenti
0/9000