Question: Sub CheckLogic ( ) x = 5 y = 1 1 If ( x > 5 And y < 1 0 ) Then MsgBox Message

Sub CheckLogic()
x =5
y =11
If (x >5 And y <10) Then
MsgBox "Message 1"
ElseIf (x >5 Or y >15) Then
MsgBox "Message 2"
ElseIf Not (x =0) Then
MsgBox "Message 3"
ElseIf Not (y =0) Then
MsgBox "Message 4"
Else
MsgBox "Message 5"
End If
End Sub
After running the above program, the following message will be displayed:
a.
Message 1
b.
Message 3
c.
Message 4
d.
Message 2
e.
Message 5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!