Created
April 18, 2020 04:28
-
-
Save parzibyte/bfbc718c2572bc2a24207fcab62c85aa to your computer and use it in GitHub Desktop.
This file contains 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
Scanner sc = new Scanner(System.in); | |
int numero, multiplo; | |
System.out.println("Ingresa un número: "); | |
numero = sc.nextInt(); | |
System.out.println("Ingresa un múltiplo: "); | |
multiplo = sc.nextInt(); | |
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
Gracias!