Skip to content
C

Four Bitwise Results

Easyjava

Read two non-negative integers a and b and print four bitwise results.

Input: two integers separated by whitespace.

Output: four lines:

AND: <a & b>
OR: <a | b>
XOR: <a ^ b>
Left Shift: <a << 1>

Input (stdin)

Output

Run your code to see output here...