Q. Write a program to implement OR, NOR, AND and NAND gates using and without using Bit wise operator. The menu should be as follows:
I. Using Bit Wise operator
II. Without using Bit Wise operator
III. 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.