Medium
Price Table
Read n lines of
item price. Print each as a row with the item left-aligned in 10 characters and the price right-aligned in 6, then a row TOTAL in the same format.Input
n, then n lines.
Output
n + 1 lines.
Sample 1
Input
2 Tea 20 Cake 80
Output
Tea 20 Cake 80 TOTAL 100
Sample 2
Input
1 Book 350
Output
Book 350 TOTAL 350
Output appears here