Practice · 1 of 2
Aligned Table
CHALLENGE
Difficulty: beginner+25 XP
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.
Press Submit to check your solution.
Back to lesson: Practice: Format Workshop