161k views
0 votes
The following code in a different program is not working properly.The message should display the value of the intCounter variable if the intCounter variable contains a balance that is less than or equal to 15.The message does not display.What mistake did the previous programmer make?

intCounter = 1
Do Until intCounter <= 15
MessageBox.Show(intCounter)
IntCounter += 1
Loop

A)The counter is not initialized.
B)The While keyword should be used instead of the Until keyword.
C)The counter is not incrementing.
D)intCounter += 1 should be changed to intCounter = intCounter + 1.

1 Answer

2 votes

Answer:

B

Step-by-step explanation:

It should be Do While or repeat until and Do until is wrong

User Cerberus
by
7.9k points