Skip to content

Commit e542744

Browse files
committed
Merge branch 'master' of https://github.com/bhoffman0/CSAwesome
2 parents 188908e + 1ce6f4c commit e542744

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_sources/Unit4-Iteration/topic-4-1-while-loops.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ You can use a ``while`` loop to repeat the body of the loop a certain number of
418418

419419
<a href="https://replit.com/@BerylHoffman/Average#Main.java" target="_blank">replit</a>
420420

421-
Here's another example of an input-conrolled loop, which you can try online with |JuiceMind| or |replit|. This code calculates the average of positive numbers. The number -1 is used as the **sentinel value**. The while loop will run while the user does not input -1. What would happen if you forgot step 3 (change the loop variable - get a new input)? Remember that skipping step 3 will often lead to an infinite loop!
421+
Here's another example of an input-controlled loop, which you can try online with |JuiceMind| or |replit|. This code calculates the average of positive numbers. The number -1 is used as the **sentinel value**. The while loop will run while the user does not input -1. What would happen if you forgot step 3 (change the loop variable - get a new input)? Remember that skipping step 3 will often lead to an infinite loop!
422422

423423
.. code-block:: java
424424

0 commit comments

Comments
 (0)