Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,30 @@
|
|||
using System;
|
||||
|
||||
class Program
|
||||
{
|
||||
static bool a(bool value)
|
||||
{
|
||||
Console.WriteLine("a");
|
||||
return value;
|
||||
}
|
||||
|
||||
static bool b(bool value)
|
||||
{
|
||||
Console.WriteLine("b");
|
||||
return value;
|
||||
}
|
||||
|
||||
static void Main()
|
||||
{
|
||||
foreach (var i in new[] { false, true })
|
||||
{
|
||||
foreach (var j in new[] { false, true })
|
||||
{
|
||||
Console.WriteLine("{0} and {1} = {2}", i, j, a(i) && b(j));
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("{0} or {1} = {2}", i, j, a(i) || b(j));
|
||||
Console.WriteLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
a
|
||||
False and False = False
|
||||
|
||||
a
|
||||
b
|
||||
False or False = False
|
||||
|
||||
a
|
||||
False and True = False
|
||||
|
||||
a
|
||||
b
|
||||
False or True = True
|
||||
|
||||
a
|
||||
b
|
||||
True and False = False
|
||||
|
||||
a
|
||||
True or False = True
|
||||
|
||||
a
|
||||
b
|
||||
True and True = True
|
||||
|
||||
a
|
||||
True or True = True
|
||||
Loading…
Add table
Add a link
Reference in a new issue