Can anyone tell me why this doesn't sum numbers or tell me of a better way to do it.
x = x
for T = 1 to 8
x= x +5
print x +5
delay 1
x = x
next T
it seems that the numbers should be 5,10,15,20,25,30,35,40.
print "The total for the 5 numbers should be ";x (40).
My problem is, when I get to the "x" above, the numbers are not added together.
My goal is to write a routine to sum several numbers. And at the end,
I've been struggling with this for 3 hours and could not get it to work.
------------------
x = x
for T = 1 to 8
x= x +5
print x +5
delay 1
x = x
next T
it seems that the numbers should be 5,10,15,20,25,30,35,40.
print "The total for the 5 numbers should be ";x (40).
My problem is, when I get to the "x" above, the numbers are not added together.
My goal is to write a routine to sum several numbers. And at the end,
I've been struggling with this for 3 hours and could not get it to work.
------------------
Comment