โ Back to Printing
Question 20
Format to Two Decimals
Format to Two Decimals
Apriceof 19.5 is given. Print it with exactly two decimal places using the:F2format specifier: 19.50
Expected Output:
19.50
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.