Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for loop with continue #8

Open
jbfaden opened this issue Oct 27, 2022 · 0 comments
Open

for loop with continue #8

jbfaden opened this issue Oct 27, 2022 · 0 comments

Comments

@jbfaden
Copy link
Owner

jbfaden commented Oct 27, 2022

A for loop is converted to a Python while loop, but if a continue statement is within the loop the loop variable is not incremented.

for ( int i=0; i<10; i++ ) {
    if ( i<3 ) continue;
    System.err.println("i="+i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant