why this is happening in for loop

Printable View