Decimal Numbers
Completed
Read a price (a decimal number) and print the price with 18% tax added, rounded to 2 decimal places using round().
Input
One decimal number.
Output
The price × 1.18, rounded to 2 places.
Example
Input
100
Output
118.0
Editor
Python
Hints
Use float() for decimal input.
round(x, 2) rounds to 2 decimal places.
Solution explanation
float() converts text to a decimal number. round(value, 2) keeps two digits after the point (and drops trailing zeros when printed).
Show solution
price = float(input())
print(round(price * 1.18, 2))