VB If Else Statement

VB If Else Statement 





CODE IS :-


Private Sub Form_Load()

    Form1.Show

    Dim a As Integer

    a = InputBox("Enter the value of a")

    If a > 5 Then

        Print "The number is greater than 5"

    Else

        Print "The number is less than 5"

    End If

End Sub


--------------------------

Comments

Popular posts from this blog

Computer Mcq Part 1 (1-50)

Computer MCQ Part 4 (151-200)

Computer MCQ Part 3 (101-150)