invalid function call | invalid function call
#3

You're increasing i twice per iteration; once before the loop body and once after it. This means it'll skip every other item. So the only items that get checked are 1, 3, 5, 7, etc. Remove the ++ in the condition. And it should probably be < instead of <= as well.
Reply


Messages In This Thread
invalid function call | invalid function call - by Vin Diesel - 03.04.2017, 21:52
Re: invalid function call | invalid function call - by OneDay - 04.04.2017, 08:18
Re: invalid function call | invalid function call - by Vince - 04.04.2017, 15:20
Re: invalid function call | invalid function call - by Vin Diesel - 04.04.2017, 17:18

Forum Jump:


Users browsing this thread: 1 Guest(s)