mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-01-01 05:49:58 +01:00
Initial commit
This commit is contained in:
parent
8b69345464
commit
1d1e98dade
|
|
@ -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}");
|
||||
|
|
|
|||
|
|
@ -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}");
|
||||
|
|
|
|||
Loading…
Reference in a new issue