First thing you could do is to just use a while loop instead:
while(count<=10 && !finished
Or you could use the prog() construct to allow you to return early:
for(count 1 10
) ; for
) ; prog
Personally I don't tend to like using the prog() approach - it leads to "spaghetti programming" where you've effectively got hidden jumps out of the code in the middle, which makes the flow of the program harder to understand.