<br />
int currentStudent = 0;<br />
int currentHouse = 0;<br />
<br />
for(int i = 0;i<100;i++){<br />
MoveStudent(currentHouse,currentStudent);<br />
currentStudent += 1;<br />
currentHouse += 1;<br />
if (currentHouse >= 4){<br />
currentHouse = 0;<br />
}<br />
}<br />
this isn't rocket science.