Staying with the topic of conditions, you will now proceed to more complex examples. In this chapter, you will meet tasks that can be solved using several conditions in a single program.
Soccer
First, you will consider in detail a typical situation of three branches of alternative execution paths.
Task
You will prepare a program in which the user enters data about a soccer match: the numbers of goals scored by both sides. The program then evaluates the match result. It displays whether the first club won , the second club won, or it was a tie (see Figures 18-1, ...