Practice ยท 1 of 2
Aligned Table
Implement void program(void) printing a right-aligned two-column table:
``
name | qty
apple | 3
mango | 12
`
Column 1 is left-aligned width 6; column 2 is right-aligned width 3. Spaces around |` exactly as shown.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Format Workshop