Chapter 4: Problem 5
Does the while loop test its condition before or after it performs an iteration?
Short Answer
Expert verified
Answer: The condition in a while loop is tested before each iteration. If the condition is true, the loop will execute the block of code within the loop; otherwise, the loop will terminate.