Practice ยท 3 of 4
Format a price banner
A shop banner must be printed with formatted numbers. Inside main, print exactly:
``
=== WEEKLY DEAL ===
Price: 19.99 USD
=== END ===
`
Use String.formatted (or printf) so the price comes from a double price = 19.991;` variable and is rounded to 2 decimal places.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Practice: First Programs