無理も何も今あるプログラムに
for(int i=0; i++; i<10) {}を付け足すだけだぞ