Question: Sub CheckLogic ( ) x = - 5 1 y = - 1 1 9 If ( x > 5 And y < 1 0

Sub CheckLogic()
x =-51
y =-119
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!