Created
December 3, 2019 04:54
-
-
Save parzibyte/0cb06e559422b83c75600d352fe5f26b 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
int esMultiplo(int numero, int multiplo) { | |
if (numero % multiplo == 0) { | |
return 1; | |
} else { | |
return 0; | |
} | |
// También se podría hacer un: | |
// return numero % multiplo == 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment