Hi
I haven't done exhaustive testing but 0,1,2 and 5; 0,1,2 and 6; 0,1,2 and 7 all produce errors.
Every other combination I have tried seems to work correctly including 0,1,2 and 8; and 0,1,2 and 9.
If the increment is altered the "in" case sequences of 0, 1,2 and 5(6 or 7) all still produce errors.
Removal of any one of the four "in" case statements eliminates the errors - as does adding a fifth.
I defined a second integer (j) and interposed a simple assignment statement between the fourth "in" case statement and the printf - to no effect - however interposing it between any of the four "in" case statements eliminated the errors.
I dont know if any of the above helps - but it was an interesting exercise and I tried quite a few meaningless variations along the way.
Regards
Paul