CJCoding With Joseph
15free / daySign inCreate account

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 (see Expected Output).

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

Expected Output:

AND: 8
OR: 14
XOR: 6

= newline. The output ends with a newline — print one after the last line.

Hints4 available
Topics:
Miscellaneous
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · 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.