-
-
Save parzibyte/1e214a8aa5a20d4b8568f242bba57969 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
Console.WriteLine("Escribe un número: "); | |
long numero = Convert.ToInt64(Console.ReadLine()); | |
long sobrante = numero & 1; | |
if (sobrante == 0) | |
{ | |
Console.WriteLine("El número es par"); | |
} | |
else | |
{ | |
Console.WriteLine("El número es impar"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment