I know they all stop when i reaches 10 , but it seems better to use
the second one(I heard).
That is a micro optimization. Use whatever makes more sense (and above < makes more sense).
What is the different?
The 1st version uses the inequality operator !=, and the 2nd uses the less operator <.