Skip to content

Instantly share code, notes, and snippets.

@stoyanovsh
Created March 19, 2021 16:46
Show Gist options
  • Select an option

  • Save stoyanovsh/603fcf4e0cb59be2943852c378286e86 to your computer and use it in GitHub Desktop.

Select an option

Save stoyanovsh/603fcf4e0cb59be2943852c378286e86 to your computer and use it in GitHub Desktop.
Task 1
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