Advertisement
Fhernd

OperadorOR.cs

Jul 7th, 2017
2,838
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.22 KB | None | 0 0
  1. class OperadorOR
  2. {
  3.     static void Main()
  4.     {
  5.         byte A = 39;
  6.         byte B = 42;
  7.  
  8.         byte resultado = (byte) (A|B);
  9.  
  10.         Console.WriteLine(Convert.ToString(resultado,2));   // Imprime 101111
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement