Skip to content

Instantly share code, notes, and snippets.

@e-tverdokhleb
Created November 19, 2015 08:25
Show Gist options
  • Save e-tverdokhleb/4647de7ed8ba932ad60f to your computer and use it in GitHub Desktop.
Save e-tverdokhleb/4647de7ed8ba932ad60f to your computer and use it in GitHub Desktop.
public class Main {
public static void main(String[] args) {
printNumbers(1,133);
}
static void printNumbers(int i, int n) {
while(i < n){
n++;
i =n +1;
System.out.println("n: "+n + "\ni: "+i);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment