Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Logical-operations/C-sharp/logical-operations.cs
Normal file
16
Task/Logical-operations/C-sharp/logical-operations.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
|
||||
namespace LogicalOperations
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
bool a = true, b = false;
|
||||
Console.WriteLine("a and b is {0}", a && b);
|
||||
Console.WriteLine("a or b is {0}", a || b);
|
||||
Console.WriteLine("Not a is {0}", !a);
|
||||
Console.WriteLine("a exclusive-or b is {0}", a ^ b);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue