Q. Write a program to implement NOR, NAND, XOR and XNOR gates using and without using bit wise operator. Also perform necessary checking. 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.