继续chapter7的Try it out部分的编程
通过2题
如下的题
A soccer team is looking for girls from ages 10 to 12 to play on their team. Write a program
to ask the user’s age and if male or female (using “m” or “f”). Display a message
indicating whether the person is eligible to play on the team.
Bonus: Make the program so that it doesn’t ask for the age unless the user is a girl.
试了数种思路。最后为孩子编了一个参考答案