Right-Align a Number
mediumQuestion 24An 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, so print one after the last line.
Hints2 available
Sign in to use hintsTopics
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.