Hacker News new | ask | show | jobs
by Banana699 1397 days ago
You should save the old value of i somewhere and restore it back at the very end of the loop. Or simply define a new j like another comment says.