CJCoding With Joseph

Decimal, Hex, and Octal

Using a single System.out.printf, print the number 255 in three bases separated by single spaces: decimal (%d), lowercase hex (%x), and octal (%o). End with %n. The exact output is:

255 ff 377

Pass the value 255 three times as arguments.

Expected Output:

255 ff 377
Topics:
Printing
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.