Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created September 20, 2019 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/ce7fde43842de98597a661bd02399606 to your computer and use it in GitHub Desktop.
Save parzibyte/ce7fde43842de98597a661bd02399606 to your computer and use it in GitHub Desktop.
/*
Número divisible en Java
https://parzibyte.me/blog
*/
class Main {
public static void main(String[] args) {
if (5 % 2 == 0) {
System.out.println("5 es divisible entre 2");
} else {
System.out.println("5 NO es divisible entre 2");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment