CJCoding With Joseph

Dollar Amount

A price price = 49.99 is given. Print it as a dollar amount with two decimals:

$49.99

Put a literal $ before the %.2f conversion.

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.