X is just a useless variable But inside the FOR loop it is the counter to know when to stop looping X=0, X=1, X=2, X=3, X=4 That NEXT X is the exact same as NEXT. Adding the X just makes it 'easier to read' but I think that's bs You used X as the FOR loop incrementer, but by convention, i is always used first, then j, then k, and so on