How do you plan to solve it?
1. OR gate: digital input values for both switches must be LOW for output to be LOW, otherwise, output will be HIGH.
2. AND gate: digital input values for both switches must be HIGH for output to be HIGH, otherwise, output will be LOW.
3. NOR gate: digital input values for both switches must be HIGH or LOW for output to be HIGH, otherwise, output will be LOW.
4. NAND gate: digital input values for both switches must be HIGH for output to be LOW, otherwise, output will be HIGH.
/*Paste your code here*/
Add a video of the output (know more)