Skip to content

Instantly share code, notes, and snippets.

@davelnewton
Created June 27, 2016 14:16
Show Gist options
  • Save davelnewton/3516bbc8cc6b27d9a27f7bc92214181a to your computer and use it in GitHub Desktop.
Save davelnewton/3516bbc8cc6b27d9a27f7bc92214181a to your computer and use it in GitHub Desktop.
package mygradeloops.java;
public class MyGradeLoopsJava {
public static void main(String[] args) {
for (int x = 1; x <= 20; x++) {
System.out.println("Please enter a number: ");
System.read.in(20);
System.out.println "Thank you.";
if (x == 10) continue;
System.out.println "Halfway there! Keep up the good work!";"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment