CJCoding With Joseph
15free / daySign inCreate account

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, so 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.