โ Back to Miscellaneous
Question 406
Bitwise AND OR and XOR
Bitwise AND OR and XOR
Two integersa = 12andb = 10are 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.