Which of the following program segments will sum the eight numbers input by the user?
(A)For k As Integer = 1 To 8
s = CDbl(InputBox("Enter a number.")
s += k
Next
(B) For k As Integer = 1 To 8
a = CDbl(InputBox("Enter a number.")
s += 1
Next
(C) For k As Integer = 1 To 8
a = CDbl(InputBox("Enter a number.")
a += s
Next
(D) For k As Integer = 1 To 8
a = CDbl(InputBox("Enter a number.")
s += a
Next
(D) For k As Integer = 1 To 8
a = CDbl(InputBox("Enter a number."))
s += a
Next
You might also like to view...
How are unit testing, integration testing, and system testing related? How are they different?
What will be an ideal response?
You create and manage multiple desktops in Task View.? ______________________
Answer the following statement true (T) or false (F)
The expression *(gPtr + 3) changes the address stored in gPtr.
Answer the following statement true (T) or false (F)
A(n) ____ is a book of synonyms.
A. dictionary B. glossary C. index D. thesaurus