Practice · 2 of 2
Money Format
CHALLENGE
Difficulty: beginner+25 XP
Implement void program(void) printing three prices, each on its own line, formatted as dollars with exactly 2 decimals: 1.5 -> $1.50, 12 -> $12.00, 0.05 -> $0.05.
Press Submit to check your solution.
Back to lesson: Practice: Format Workshop