How to write a For...Next loop?

January 29, 2011 at 13:46:36
Specs: Windows Vista
Dim intLoopValue As Integer
Dim intStarvtalue As Integer
Dim int Endvalue As Integer
Dim intSum As Integer

intStartvalue = 1
intEndvalue = 49
intSum = 0

Using the info above, I need to write a For Next loop that adds odd numbers from 1-49 and assign their sum to the variable intSum.

See More: How to write a For...Next loop?

Report •

January 29, 2011 at 15:25:14
For loop = start to end step 2
sum = sum + loop

Report •
Related Solutions

Ask Question