using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
//논리연산자
//AND : &&
//A && B : A,B 둘다 True면 True
//bool result = true && true; True
//bool result = true && false; false
Console.Write("입력 1 (true, false) : ");
string input1 = Console.ReadLine();
Console.WriteLine("input1 : {0}", input1);
//형식변환 string -> bool
bool a = Convert.ToBoolean(input1);
Console.WriteLine("A : {0}", a);
Console.Write("입력 2 (true, false) : ");
string input2 = Console.ReadLine();
Console.WriteLine("input2 : {0}", input2);
//형식변환 string -> bool
bool b = Convert.ToBoolean(input2);
Console.WriteLine("B : {0}", b);
bool and = a && b;
bool or = a || b;
Console.WriteLine("A && B : {0}", and);
Console.WriteLine("A || B : {0}", or);
Console.WriteLine("(NOT)A && B : {0}", !and);
Console.WriteLine("(NOT)A || B : {0}", !or);
}
}
}