Perhaps by using some boolean and logic operators in C#, you could write a logical gate simulator in C#!
ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
AND gate works just as && operator mean the access will be given if an only if both the statements are true in A, B, C for C will only be true when A and B both will be true.
OR gate works as || operator mean output C will be true when either of B or C will be true.
NOT gate will output true when the input will be false it works as != in programming environment e.g. if we give input A as false only then output C will be True
abelLazm
Postaholic
2,113 posts since Feb 2011
Reputation Points: 219
Solved Threads: 124