What is the output of the code shown in Figure 6-107? 53 54 55 56 57 int Count = 40 Do Until int Count < 26 int Count -= 2 1st Count.Items.Add(int Count) Loop FIGURE 6-107

What is the output of the code shown in Figure 6-107? 53 54 55 56 57 int Count = 40 Do Until int Count < 26 int Count -= 2 1st Count.Items.Add(int Count) Loop FIGURE 6-107

Answer

πŸ‘‡πŸ‘‡πŸ‘‡πŸ‘‡Click On Below Ads To see The Answer

Do [ { While | Until } condition ]
    [ statements ]
    [ Continue Do ]
    [ statements ]
    [ Exit Do ]
    [ statements ]
Loop

This code will decrement intCount variable by 2 in the Do until loop and added to lstCount.

Code for Figure 6



Public Class Form1
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim intCount As Integer

        intCount = 40
        Do Until intCount < 26
            intCount -= 2
            ListBox1.Items.Add(intCount)
        Loop

    End Sub
End Class

The content of lstCount after execution of the loop is:

Leave a Comment