Created
March 7, 2020 02:30
-
-
Save brunolimadevelopment/9ad5f0772f2caacdd5b8b1c3c6daa157 to your computer and use it in GitHub Desktop.
[JS] - Verifica se é PAR ou IMPAR
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
function parOuImpar(n) { | |
if(n%2 == 0){ | |
return 'par'; | |
} else { | |
return 'impar'; | |
} | |
} | |
parOuImpar(11); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment