Created
March 19, 2021 16:46
-
-
Save stoyanovsh/603fcf4e0cb59be2943852c378286e86 to your computer and use it in GitHub Desktop.
Task 1
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
| public class Numbers { | |
| public static void main(String[] args) { | |
| for (int i = 1; i <= 100 ; i++) { | |
| if(i % 3 == 0){ | |
| System.out.println("git"); | |
| }else if(i % 5 == 0){ | |
| System.out.println("hub"); | |
| }else { | |
| System.out.println(i); | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment