Created
February 24, 2016 14:46
-
-
Save alexejVasko/9dad290e5716cc016955 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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