Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a For...Next loop that adds the odd number 1 thourgh 49and assigns their s

ID: 3611347 • Letter: W

Question

Write a For...Next loop that adds the odd number 1 thourgh 49and assigns their sum to the variable intSum. The program shouldstart with the lines shown here (use the following variablein your code). Dim intLoopValue As Integer Dim intStartvalue As Integer Dim intEndvalue As Integer Dim intSum As Integer intStartvalue = 1 intEndvalue = 49 intSum = 0 I have a final exam on next week. I really want to know this question. please help me. Write a For...Next loop that adds the odd number 1 thourgh 49and assigns their sum to the variable intSum. The program shouldstart with the lines shown here (use the following variablein your code). Dim intLoopValue As Integer Dim intStartvalue As Integer Dim intEndvalue As Integer Dim intSum As Integer intStartvalue = 1 intEndvalue = 49 intSum = 0 I have a final exam on next week. I really want to know this question. please help me.

Explanation / Answer

Dim intLoopValue As Integer Dim intStartvalue As Integer Dim intEndvalue As Integer Dim intSum As Integer intStartvalue = 1 intEndvalue = 49 intSum = 0
For intLoopValue = inStartvalue to intEndvalue Step 2
    intSum=intSum+intLoopValue
Next intLoopValue
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote