User blog comment:Kyodaisuu/A program of Kirby-Paris hydra/@comment-1605058-20140817172823/@comment-24250937-20140817183246

Hi, the C-like code was written by me.

In C language, a variable for a loop can be modified inside the loop. It's just "variable", so we can assign new value to the variable anywhere in the scope. The "for" syntax is the "syntax sugar" for writing loop, so it will be compiled into "assignment" (i = 0), "termination condition" (i < 10), "operation" (i++) and "jump" (jump to top of the loop block when end of the loop block). These are "separated operations" after compile. In C language, "for" and "variable" are independent.