โ Back to Printing
Question 9
Zero Padding
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
Expected Output:
007 045 123
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท 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.