From 1d1e98dade0b28619619aef95b574cae6ed802c6 Mon Sep 17 00:00:00 2001 From: Mark J Price Date: Wed, 18 May 2022 14:58:38 +0100 Subject: [PATCH] Initial commit --- vs4win/Chapter03/BitwiseAndShiftOperators/Program.cs | 6 +++--- vscode/Chapter03/BitwiseAndShiftOperators/Program.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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}");