CJCoding With Joseph
15free / daySign inCreate account

Change From Twenty

A customer pays for one item with a twenty-dollar bill. Read the price as a decimal number and print the change in the form Change: <value> with exactly two decimals using :0.2f. Input: one line, the price, which is never more than 20, no prompt.

Expected Output:

Change: 7.25

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

Hints2 available
Topics:
User Input
📥 Auto-Input:
12.75\n
This input is automatically fed to your program's stdin
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.