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