Batch Spreadsheet for C Programmers - 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

Development

Implementation derived from Truth-Table precursor
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