Q. Develop a menu driven program to implement the logic of the following gates.
I. AND Gate
II. OR Gate
III. NOT Gate
IV. Exit
The user has option to give n number of inputs and selects the gate according to his choice. The output should be displayed according to the gate selected by the user.