CJCoding With Joseph

Add Sales Tax to a Price

Read a price (a decimal number) from standard input, add 8% sales tax, and print the total rounded to exactly two decimal places. The total is price * 1.08. For example, if the input is 100, print:

108.00

Use printf with %.2f and no trailing newline.

Expected Output:

108.00
Topics:
User Input
๐Ÿ“ฅ Auto-Input:
100\n
This input is automatically fed to your program's stdin
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (p, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.