Question: The following pseudocode is not working properly. The message should display five times. This is not working because the programmer made which common loop mistake?
The following pseudocode is not working properly. The message should display five times. This is not working because the programmer made which common loop mistake?
Declarations num count string message = Good while count < 5 output message count = count + 1 endwhile
a. Neglecting to initialize the loop control variable b. Neglecting to alter the loop control variable c. Using the wrong comparison with the loop control variable d. Including statements inside the loop that belong outside the loop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
