Practice · 4 of 4
Formatted inventory line
CHALLENGE
Difficulty: beginner+25 XP
Implement static string Line(string name, int qty, decimal price) returning exactly name padded-right to 10 chars, a space, qty padded-left to 3 with zeros, a space, and price with exactly 2 decimals. Example: Wire 007 4.50.
Press Submit to check your solution.
Back to lesson: Practice: Types under pressure