diff --git a/vs4win/Chapter03/BitwiseAndShiftOperators/Program.cs b/vs4win/Chapter03/BitwiseAndShiftOperators/Program.cs index 5d6c49e..abde4fc 100644 --- a/vs4win/Chapter03/BitwiseAndShiftOperators/Program.cs +++ b/vs4win/Chapter03/BitwiseAndShiftOperators/Program.cs @@ -3,9 +3,9 @@ int b = 6; // 00000110 WriteLine($"a = {a}"); WriteLine($"b = {b}"); -WriteLine($"a & b = {a & b}"); // 2-bit column only -WriteLine($"a | b = {a | b}"); // 8, 4, and 2-bit columns -WriteLine($"a ^ b = {a ^ b}"); // 8 and 4-bit columns +WriteLine($"a & b = {a & b}"); // 2-bit column only e.g. 00000010 +WriteLine($"a | b = {a | b}"); // 8, 4, and 2-bit columns e.g. 00001110 +WriteLine($"a ^ b = {a ^ b}"); // 8 and 4-bit columns e.g. 00001100 // 01010000 left-shift a by three bit columns WriteLine($"a << 3 = {a << 3}"); diff --git a/vscode/Chapter03/BitwiseAndShiftOperators/Program.cs b/vscode/Chapter03/BitwiseAndShiftOperators/Program.cs index 5d6c49e..abde4fc 100644 --- a/vscode/Chapter03/BitwiseAndShiftOperators/Program.cs +++ b/vscode/Chapter03/BitwiseAndShiftOperators/Program.cs @@ -3,9 +3,9 @@ int b = 6; // 00000110 WriteLine($"a = {a}"); WriteLine($"b = {b}"); -WriteLine($"a & b = {a & b}"); // 2-bit column only -WriteLine($"a | b = {a | b}"); // 8, 4, and 2-bit columns -WriteLine($"a ^ b = {a ^ b}"); // 8 and 4-bit columns +WriteLine($"a & b = {a & b}"); // 2-bit column only e.g. 00000010 +WriteLine($"a | b = {a | b}"); // 8, 4, and 2-bit columns e.g. 00001110 +WriteLine($"a ^ b = {a ^ b}"); // 8 and 4-bit columns e.g. 00001100 // 01010000 left-shift a by three bit columns WriteLine($"a << 3 = {a << 3}");