Skip to content
CampusEduX

Final Price with a Tax Constant

Easyjava
Learn the Concept: Constants

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.

Related Problems

Input (stdin)

Output

Run your code to see output here...