CJCoding With Joseph

Print a Right-Aligned Two-Column Row

Print a single row with two columns: the label Apples left-aligned in a field 10 wide, immediately followed by the number 5 right-aligned in a field 5 wide. The output is:

Apples        5

That is Apples, then 8 spaces, then 5.

Expected Output:

Apples        5
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.