← Back to User Input
Question 179
Change From Twenty
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
Sign in to use hintsTopics:
User Input
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.