Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

What do they not do so well?

Answered: 1 week ago