Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const bool a = true;
- const bool b = false;
- bool logsoucet;
- bool logsoucin;
- bool neglogsoucin;
- bool exclusivor;
- logsoucet = a || b;
- logsoucin = a && b;
- neglogsoucin = !(a && b);
- exclusivor = a ^ b;
- Console.WriteLine("{0} or {1} = {2}", a, b, logsoucet);
- Console.WriteLine("{0} and {1} = {2}", a, b, logsoucin);
- Console.WriteLine("{0} nand {1} = {2}", a, b, neglogsoucin);
- Console.WriteLine("{0} xor {1} = {2}", a, b, exclusivor);
- Console.ReadKey();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement