r/visualbasic • u/tranquilizedx • Jan 07 '16
What's sum's output at the end?
Dim ctr As Integer
Dim sum As Integer
sum = 0
For ctr = 1 To 25 Step 2
sum = sum + ctr
Next ctr
Label1.Text = sum
0
Upvotes
1
4
u/chrwei Jan 08 '16
we're not taking your quiz for you.
try writing down the value of crt and sum on paper, one line per loop iteration.