Boolean Variables in Loops

In this lesson, we will explore the use of Boolean variables to control a loop.

The sum of positive numbers

Let’s recall the loop that sums the positive numbers entered by a user, as given earlier in this chapter:

Get hands-on with 1200+ tech skills courses.