Created
August 7, 2013 15:35
-
-
Save Fhernd/6175177 to your computer and use it in GitHub Desktop.
Demostración del uso del operador de igualdad (==) sobre tipos de datos primitivos.
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
class IgualdadTiposPrimitivos | |
{ | |
static void Main() | |
{ | |
int x = 1; | |
int y = 2; | |
int z = 1; | |
Console.WriteLine(x == y); // False | |
Console.WriteLine(x == z); // True | |
Console.ReadKey(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment