#T556. 卖电池
卖电池
Description
Yas Supermarket sells batteries, with each battery priced at 2.5 yuan. If the quantity reaches 10 or more, a 20% discount is applied. Write a program that takes the number of batteries as input and outputs the total cost (rounded to 2 decimal places).
Input Format
One line: an integer representing the number of batteries.
Output Format
One line: a floating-point number representing the total cost, rounded to 2 decimal places.
15
30.00
Source
CodesOnline