ttfill a0:c7; d0 = a0 && b0 || a0 && c0 || b0 && c0; e0 = majority(a0,b0,c0); copy d1:e7 d0:e6; eval; format "%g"; print values; A B C D E 0 0 0 0 0 0 1 0 0 1 0 0 2 0 1 0 0 0 3 0 1 1 1 1 4 1 0 0 0 0 5 1 0 1 1 1 6 1 1 0 1 1 7 1 1 1 1 1