using System;
public class Program
{
public static void Main()
/*
Operator AND
true && true -->true
false && false -->false
true && false -->false
Operator OR
true || true --> true
false || false --> false
true || false --> false
Operator Negacja -->odwraca wartość; Negacja ma pierwszenstwo w kolejnosci obliczania
!true
!false
_____________________--
GOAL:
Explore boolean arythmetics. It is called boolean after this guy called George Boole
bool variable can have 2 values: true or false
TIPS:
There are 3 basic operations here:
- conjunction (and) operator "&&" dziala jak mnozenie - jedno zero powoduje ze juz zeruje calosc
- disjuntion (or) operator "||" podobnie jak dodawanie-jedna jedynka (prawda) powoduje ze calosc jest prawda
- negation (not) operator "!" odwraca - zprawdy robi falsz i odwrotnie
And there is also
- excusive or (xor) operator "^"
Having the 2 variables b1 and b2:
Try out there operations on them with different set of values
Then add the third variable and play some more.
*/
var a = false;
var b = false;
var c = false;
var result = a && b || c;
Console.WriteLine(result);
}