/media/sda-magnetic/david/Dokumente-15/fernuni-hagen/cs-i-ii/old-cs-2-03/fsm-21-06-09/asm-dia.c


#include <stdio.h>
#include <time.h>
#include <stdlib.h>

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

int main (void) {
        int x, z2, z1, z0;
        time_t t;
        
        srand((unsigned) time(&t));
        
            printf ("p q x\tp q\n");
            for (z1 = 0;  z1 <= 1;  z1++) {
                for (z0 = 0;  z0 <= 1;  z0++) {
                    for (x = 0;  x <= 1;  x++) {
                        printf ("%i %i %i\t%i %i\n", z1, z0, x, rand () % 2, rand () % 2, rand () % 2);
                    }
                }
            }
    
return 0;
}