Wire each switch between an input pin and ground. Connect each LED—with a resistor—in series between an output pin and ground. Then, use programming logic to display the results of AND, OR, NAND, and NOR operations on the LEDs.
Code
/*Paste your code here*/
https://wokwi.com/projects/443180081860897793