> According to sample number 2 above, we will read the loop 4 times to track the current value of sample. Imagine if you have an array with 1000 elements inside it.
That is one of that.
> ...made our code more concise
and also in the summary. Well, I know maybe "concise" is a subjective thing :)