Skip to content

Instantly share code, notes, and snippets.

@alexejVasko
Created February 24, 2016 14:46
Show Gist options
  • Save alexejVasko/9dad290e5716cc016955 to your computer and use it in GitHub Desktop.
Save alexejVasko/9dad290e5716cc016955 to your computer and use it in GitHub Desktop.
package logic;
public class EndlessCycle {
public static void main(String[] args) {
printNumbers(-44,9);
}
static void printNumbers(int i, int n){
while (i<n){
n++;
n--;
n--;
System.out.println("#:" + n);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment