Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created April 18, 2020 04:23
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/6de6967feea800dac78c7cdda1bb8411 to your computer and use it in GitHub Desktop.
Save parzibyte/6de6967feea800dac78c7cdda1bb8411 to your computer and use it in GitHub Desktop.
int numero = 12;
int multiplo = 3;
if (numero % multiplo == 0) {
System.out.printf("%d es múltiplo de %d", numero, multiplo);
} else {
System.out.println("No es múltiplo");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment