/media/sda-magnetic/david/Extern-Magnetic-2022-06-29/Extern01/Dokumente-2021-05-8/disk10-ab-2020-01-10/02-debian-pc2-work/informatik/2021-04-24-state/solver2.c


#include <stdio.h>

#define and &&
#define or ||
#define not !

int main (void) {
        int x, z2, z1, z0;
        
        
            for (z1 = 0;  z1 <= 1;  z1++) {
                for (z0 = 0;  z0 <= 1;  z0++) {
                    for (x = 0;  x <= 1;  x++) {
                        
                            printf ("%i%i %i \n", (not z1 and not z0 and not x) or (not z1 and z0 and x) or (z1 and not z0 and x) or (z1 and z0 and not x), (not z0), (not z1 and z0 and x) or (z1 and not z0 and x));
                    }
                }
            }
    
return 0;
}