mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
24 lines
392 B
C#
24 lines
392 B
C#
WriteLine("int x = 3;");
|
|
WriteLine("int y = 2 + ++x;");
|
|
|
|
int x = 3;
|
|
int y = 2 + ++x;
|
|
WriteLine($"x = {x} and y = {y}");
|
|
WriteLine();
|
|
|
|
WriteLine("x = 3 << 2;");
|
|
WriteLine("y = 10 >> 1;");
|
|
|
|
x = 3 << 2;
|
|
y = 10 >> 1; ;
|
|
WriteLine($"x = {x} and y = {y}");
|
|
WriteLine();
|
|
|
|
WriteLine("x = 10 & 8;");
|
|
WriteLine("y = 10 | 7;");
|
|
|
|
x = 10 & 8;
|
|
y = 10 | 7;
|
|
WriteLine($"x = {x} and y = {y}");
|
|
WriteLine();
|