CJCoding With Joseph
15free / daySign inCreate account

Price Times Quantity

The total of a purchase is already computed from the declared price and quantity, but multiplying floats leaves it with a long tail of digits. Print one line of output made of the label Total, a colon, a space, and the total shown with exactly two decimal places using :0.2f. Input: none; the values are fixed in the code.

Expected Output:

Total: 59.97

= newline. The output ends with a newline — print one after the last line.

Hints2 available
Topics:
Printing
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.