Skip to content
C

Final Price with a Tax Constant

Easyjava

Declare final double TAX_RATE = 0.18; and use it to add 18% tax to a price.

Input: one number — the price before tax.

Output: one line — the final price (price + price x TAX_RATE) rounded to two decimal places.

Input (stdin)

Output

Run your code to see output here...