Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class OperadorXOR
- {
- static void Main()
- {
- byte A = 17;
- byte B = 29;
- byte resultado = (byte)(A ^ B);
- Console.WriteLine(Convert.ToString(resultado, 2)); // Imprime 1100
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement