No, the answer will be 6, since the while loop will continue to loop until the conditional statement evaluates to false. So the counter is incremented 5 times while the while loop is being executed. After the while loop is executed, the counter will be equal to 6.
4 Responses to Quiz 15 – While Loop
ers3
April 28th, 2015 at 11:55 am
Robert Smith
April 28th, 2015 at 1:07 pm
Gugu
May 28th, 2016 at 12:31 pm
mhmd
August 29th, 2016 at 7:33 am