Earlier quoted context omitted.
n++; // increment n
I've had students that did this. It's a real pain to read code like that, and the 2nd time they handed it in, it was an automatic fail. Comments explain assumptions, and often "the why", never "the what" unless it's obscure because of optimizations.
I told him he was wrong and argued with him on more than one occasion. In the end, I just did it his way because there wasn't a good alternative.