assume a room has three doors and switch by door controls a single light in the room. let X,Y,Z denotes state of switches. assume the light is off if all switches are open. closing any switches turn the light on. closing another switch will have to turn the light off. light is on if any one switch is closed and off if two or no switches are closed. light is on if all three switches are closed.
No comments:
Post a Comment