CJCoding With Joseph
15free / daySign inCreate account

Zero Padding

Create three integer variables with the values 7, 45, and 123. Print each of them on a new line, but format them so they always appear as 3 digits padded with zeros.

Expected Output:

007
045
123

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

Hints4 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 (sysout, psvm, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.