Question: Write a For...Next loop that adds the odd numbers 1 through 49 and assigns their sum to the variable intSum. The program should start with
Write a For...Next loop that adds the odd numbers 1 through 49 and assigns their sum to the variable intSum. The program should start with the lines shown in Figure 6-113 (use the variables shown in lines \(120-123\) in your code).
120 121 122 123 124 125 126 127 Dim intLoopValue As Integer Dim intStartvalue As Integer Dim intEndvalue As Integer Dim intSum As Integer: intStartvalue = 1 intEndvalue = 49 intSum 0 FIGURE 6-113
Step by Step Solution
3.38 Rating (154 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
