← Back to User Input
Question 185
Split The Bill
Split The Bill
Read a restaurant bill as a decimal number, the number of people as a whole number and a tip percentage as a whole number, add the tip to the bill, divide the result equally and print Each pays: <value> with two decimals using :0.2f. Input: three lines in that order, no prompts.
Expected Output:
Each pays: 23.00= newline. The output ends with a newline — print one after the last line.
Hints3 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.