This is to provide you with an introductory experience of bit-wise operations. There are basically six bit-wise operations in any programming language : - AND(&), OR(|), XOR(^), NOT(~), left-shift operator(<<) and right-shift operator(>>). You will be given 2 numbers a and b to perform AND, OR and XOR operations and 2 number p and q to perform bit-wise shifting operations(left and right) and a number x to perform the NOT(~) operation. Print the output upon performing these operations each in a newline.
five positive integers a, b, p, q and x separated by a space.
In the three lines, print the output upon performing Bitwise AND, OR, XOR operations respectively on 'a' and 'b'.
In the next two lines, print the output of left-shifting 'p' by 'q' bits and right-shifting 'p' by 'q' bits, respectively.
In the last line, print the output upon performing the bit-wise NOT operation on 'x'.
0 ≤ a, b, p, q, x ≤ 255