0
How to make 'n' input TRUTH TABLE using java
6 Answers
+ 2
So you can just create a matrix by using therefore a 2-dimensional array and make it (2^n)x(n+1) large.
Then fill up the first n lines with 0s and 1s and iterate with loop row by row by using your function to assign the result values in the last column
+ 1
Do you want to create a program which inputs a number n and create a truth table for the n input signals for a specific function?
+ 1
I would think the easiest way eg n=3
000
001
010
011
100
101
110
111
0
yes
0
0's and 1's should be filled in which order??
0
thanks