Ad

added two new functions Nor and Nand

Code
Diff
  • bool Or(bool a, bool b) {
        return a+b;
    }
    bool And(bool a, bool b) {
        return a*b;
    }
    bool Xor(bool a, bool b) {
        return a!=b;
    }
    bool Nor(bool a, bool b) {
        return !(a+b);
    }
    bool Nand(bool a, bool b) {
        return !(a*b);
    }
    • bool Or(bool a, bool b) {
    • return a+b;
    • }
    • bool And(bool a, bool b) {
    • return a*b;
    • }
    • bool Xor(bool a, bool b) {
    • return a!=b;
    • }
    • bool Nor(bool a, bool b) {
    • return !(a+b);
    • }
    • bool Nand(bool a, bool b) {
    • return !(a*b);
    • }