Created
April 6, 2016 02:42
-
-
Save vmussak/54d8ac34b66016ddac62ebcfe688aee6 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 numero = (int)txtNumero.Text; | |
//se o resto da divisão do número por 2 for igual a zero, o número é par. | |
if(numero % 2 == 0) | |
{ | |
//par | |
} | |
else | |
{ | |
//impar | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment