CJCoding With Joseph

Bitwise AND OR and XOR

Two integers a = 12 and b = 10 are given. Print the results of the bitwise AND (&), OR (|), and XOR (^) operators, each on its own line, exactly:

AND: 8
OR: 14
XOR: 6

Wrap each bitwise expression in parentheses when concatenating with a label.

Expected Output:

AND: 8
OR: 14
XOR: 6
Topics:
Miscellaneous
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (sysout, psvm, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.