Skip to main content
Logo image

Section 10.4 Practice Your Advanced Branching!

Subsection 10.4.1 Practice 1

Activity 10.4.

Okay, you can try this out now. Does the the output of the program agree with what you thought would happen? If not, do you see why? Do you have questions?

admin.....open in new window

Subsection 10.4.2 Practice 2

Activity 10.5.

Let’s try this again with another example. Again, do not simply run the code but rather trace through the code as if you were the computer. What is the output of the following program?

admin.....open in new window