โ Back to Printing
Question 184
Dollar Amount
Dollar Amount
A priceprice = 49.99is given. Print it as a dollar amount with two decimals: $49.99 Put a literal$before the%.2fconversion.
Expected Output:
$49.99
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (p, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.