CJCoding With Joseph
15free / daySign inCreate account

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
Topics:
User Input
📥 Auto-Input:
80\n4\n15\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.