Created
October 24, 2015 13:16
-
-
Save edinak1/cfab47062f209ab43c0c 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 metod; | |
| public class Numbers { | |
| public static void main(String[] args) { | |
| printNumbers(-4,27); | |
| } | |
| static void printNumbers(int i, int n) | |
| { | |
| while(i<n) | |
| { | |
| System.out.println(n); | |
| n++; | |
| if(n%10==0) | |
| i=n; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment