โ Back to Printing
Question 250
Print a Right-Aligned Two-Column Row
Print a Right-Aligned Two-Column Row
Print a single row with two columns: the labelApplesleft-aligned in a field 10 wide, immediately followed by the number 5 right-aligned in a field 5 wide. The output is: Apples 5 That isApples, then 8 spaces, then5.
Expected Output:
Apples 5
Topics:
Printing
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.