Загрузка данных


#include <stdbool.h>
#include <stdio.h>

int main(void) {
    bool a = false;
    bool b = false;
    bool c = true;

    if ((!a || !b) && !c) {
        printf("(!A || !B) && !C = true\n");
    } else {
        printf("(!A || !B) && !C = false\n");
    }

    return 0;
}


#include <iostream>

using namespace std;

int main() {
    cout << "X | Y | !(!X && !Y) && X\n";

    int x, y;

    x = 0; y = 0;
    cout << x << " | " << y << " | " << ((!x && !y) && x) << '\n';

    x = 0; y = 1;
    cout << x << " | " << y << " | " << ((!x && !y) && x) << '\n';

    x = 1; y = 0;
    cout << x << " | " << y << " | " << ((!x && !y) && x) << '\n';

    x = 1; y = 1;
    cout << x << " | " << y << " | " << ((!x && !y) && x) << '\n';

    return 0;
}


#include <stdio.h>

int main(void) {
    printf("X | Y | !(!X && !Y) && X\n");

    int x, y;

    x = 0; y = 0;
    printf("%d | %d | %d\n", x, y, !(!x && !y) && x);

    x = 0; y = 1;
    printf("%d | %d | %d\n", x, y, !(!x && !y) && x);

    x = 1; y = 0;
    printf("%d | %d | %d\n", x, y, !(!x && !y) && x);

    x = 1; y = 1;
    printf("%d | %d | %d\n", x, y, !(!x && !y) && x);

    return 0;
}