When I was in 2nd year of engineering (it was introduction to C) our teacher asked " can we use anything else other than i in (for i=0; i<n;i++). One girl who is also topper of the class said no. So everyone else collectively said no. Me and my friend knew we can use any variable. We still sometimes tell her "I'm going to use k in a for loop".
The question was asked before nested loops. At that point we didn't even knew we can have loop inside a loop. It was like 1st grade in terms of programming
-1
u/Sudhanva_Kote Nov 12 '20
When I was in 2nd year of engineering (it was introduction to C) our teacher asked " can we use anything else other than i in (for i=0; i<n;i++). One girl who is also topper of the class said no. So everyone else collectively said no. Me and my friend knew we can use any variable. We still sometimes tell her "I'm going to use k in a for loop".