Question: Option Explicit Sub SumConditional ( ) Dim X ( 4 ) As Double, 1 As Integer, sum As Double x ( 1 ) = 3

Option Explicit
Sub SumConditional()
Dim X(4) As Double, 1 As Integer, sum As Double
x(1)=3
x(2)=1
x(3)=5
x(4)=7
For i=1 To 4
If x(1)Longleftrightarrow5 Then sum = sum +x(1)
Next 1
MsgBox sum
End Sub
(check all that apply)
If the "For i=1 To 4" line was
changed to "For i=0 to 4" then this
would result in an error:
The size of x is 4.
The size of x is 5.
The result would be the same in this
 Option Explicit Sub SumConditional() Dim X(4) As Double, 1 As Integer,

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!