write the VB code to find greater number between two numbers using input box design the form also
Answers
Answered by
5
Dim a, b, As Integer
a = InputBox( "enter 1st no." )
b = InputBox( "enter 2nd no." )
If a > b Then
MsgBox( "A is Greater" )
Else
MsgBox( "B is Greater" )
End If
a = InputBox( "enter 1st no." )
b = InputBox( "enter 2nd no." )
If a > b Then
MsgBox( "A is Greater" )
Else
MsgBox( "B is Greater" )
End If
Similar questions