📜  与门 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:38.757000             🧑  作者: Mango

代码示例4
An or game is a simple gate which sends an output of 1 if either of its inputs
are 1. It has two or more inputs and only one output.

Inputs and Outputs:
A | B | C
0 | 0 | 0
1 | 0 | 1
0 | 1 | 1
1 | 1 | 1

A(Input 1)
B(Input 2)
C(Output)