0
Need help please!!! Entry by age.
Visitor can enter if 12 year's old. If not, can not. If under 12 years old, can only go with an accompanied. Only comparison can be used. Without if/else. Thanks for your help.
2 odpowiedzi
+ 1
bool canEnter(int age) {
return (age<12)? false : true;
}
0
Thanks Aleksandar.