Skip to main content
Logo image

Section 10.6 Common Errors With Branching

Subsection 10.6.1 Practice 5

Activity 10.8.

What’s wrong here? Why is this not printing a list of factorials? Can you fix it?

admin.....open in new window

Subsection 10.6.2 Practice 6

Activity 10.9.

What’s wrong with this now?
You’d like to print out a rectangle of stars that is 8 stars wide and 3 stars tall, just as in the output below:
********
********
********
Something is wrong with your code however. Can you fix it?

admin.....open in new window

Subsection 10.6.3 Practice 7

Activity 10.10.

What’s wrong with this code? Why is it not printing the equation you expect?

admin.....open in new window

What is wrong here?