CJCoding With Joseph

Pad Right with Spaces

Pad the string "Hi" on the right with spaces to a total width of 5, then append a "|" so the padding is visible. Print exactly:

Hi   |

Expected Output:

Hi   |
Topics:
Strings
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.