int counter = 0;
while (counter < 100)
{
Console.WriteLine(counter) ;
counter++;
}
-Looking above,if the loop body was changed from counter++;to counter += 5;,how many times would the loop body be executed?
A) 19
B) 20
C) 99
D) 100
Correct Answer:
Verified
Q10: A sentinel controlled loop is also called
Q21: In C# curly braces must be added
Q23: With the while loop, the body of
Q25: What is NOT required when a counter-controlled
Q28: The do...while loop can be used to
Q29: C# performs automatic garbage collection once the
Q32: One of the major strengths of programming
Q34: A common problem associated with counter-controlled loops
Q38: Without incrementing the counter used in the
Q39: An interpretation of the while statement is
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents