You are developing a C# program. You write the following code:
How many times will the control enter the while loop?
A. 5
B. 4
C. 3
D. 2
You are developing a C# program. You write the following code:
How many times will the control enter the while loop?
A. 5
B. 4
C. 3
D. 2
Answer is incorrect, it should be A.
Count = 0 – 1st entry.
Count = 1 – 2nd entry.
Count = 2 – 3rd entry.
Count = 3 – 4th entry.
Count = 4 – 5th entry.
You are incorrect… Don`t you see “break” keyword? The correct answer is B.