fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. byte A = 0x9a;
  8. byte B = 0x72;
  9. byte C = (byte)(
  10. (A & 0x80) |
  11. ((A & 0x20) << 1) |
  12. ((A & 0x08) << 2) |
  13. ((A & 0x02) << 3) |
  14. ((B & 0x80) >> 4) |
  15. ((B & 0x20) >> 3) |
  16. ((B & 0x08) >> 2) |
  17. ((B & 0x02) >> 1));
  18. Console.WriteLine(C);
  19.  
  20. }
  21. }
Success #stdin #stdout 0.04s 38000KB
stdin
Standard input is empty
stdout
181