CJCoding With Joseph
15free / daySign inCreate account

Right-Align a Number

An alignment value in an interpolation pads a value to a width. Print 42 right-aligned in a width of 5 (so 3 spaces then 42) using {42,5} (see Expected Output).

Expected Output:

   42

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

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