Write the ticket office: a price by age, and 20 rupees more on a weekend for every ticket that is not free. The checker runs ten pairs of age and weekend, and shows the pairs that fail.
Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…