Professional Documents
Culture Documents
F.Select case
Public Class Form1
G.Between range
Public Class Form1
H.For Loop:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim loopcounter As Integer
For loopcounter = 1 To 6
MsgBox("simple for loop.value of loop count is: " + loopcounter.ToString)
Next
End Sub
NAVDEEP KAUR 111076208322
Catch ex As Exception
MsgBox("Please enter valid maxnumber.error:" + ex.Message)
Return
End Try
For i = 0 To maxnumber
TOTALSUM = TOTALSUM + i
Next
MsgBox("total sum up to max number" + maxnumber.ToString + " is" +
TOTALSUM.ToString)
Else
MsgBox("please enter valid max number")
End If
End Sub
End Class