I recommend confirming finally stored value in i with the following codes. It must be 8. FOR I=0 TO 7 PRINT I NEXT I PRINT"Finally i is ",i