|
Trying to accomplish this equation 100-150= negative 50. Instead I am getting a positive 50.
My head hurts.
Count = 2
First time through result = 0, myarray(0) = 100. So 100 minus 0 =100. Result =100
Second time through result =100, myarray(1) = 150. So 150 minus 100 = 50.
--------------------------------------------------------------
For count As Integer = 0 To myarray.Length - 2
result = myarray(count) - result
Next
|