Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

How do you add two harmonic motions having different frequencies?

Answered: 1 week ago