Question: 4. The intSales array is declared as follows: Dim intSales() As Integer = {10000, 12000, 900, 500, 20000}. Which of the following loops will correctly
4. The intSales array is declared as follows: Dim intSales() As Integer = {10000, 12000, 900, 500, 20000}. Which of the following loops will correctly add 100 to each array element? The intSub variable contains the number 0 before the loop is processed.
a. Do While intSub <= 4 intSub = intSub + 100 Loop
b. Do While intSub <= 4 intSales = intSales + 100 Loop
c. Do While intSub < 5 intSales(intSub) += 100 Loop
d. none of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
