#C9781. Taco Savings Promotion
Taco Savings Promotion
Taco Savings Promotion
This problem involves calculating the savings obtained by applying a promotional discount to orders from Taco. For each test case, you are given three integers:
- P: the price per item,
- N: the number of items ordered,
- K: the discount percentage.
The savings is computed using the formula:
\(\text{savings} = P \times N \times \frac{K}{100}\)
Your task is to calculate the savings for each test case and output the result with one decimal precision. All input is read from standard input and output is printed to standard output.
inputFormat
The first line contains a single integer T representing the number of test cases. Each of the following T lines contains three space-separated integers: P (price per item), N (number of items), and K (discount percentage).
outputFormat
For each test case, output a single line containing the calculated saving, formatted to one decimal place.
## sample3
10 5 20
15 3 10
20 2 50
10.0
4.5
20.0
</p>