#C12724. Mystery Novel Rentals
Mystery Novel Rentals
Mystery Novel Rentals
You are given the total number of book rentals in a library. On average, 3 out of every 8 books rented are mystery novels. Your task is to compute the number of mystery novels rented.
The formula to calculate the number of mystery novel rentals is given by:
\( \text{mystery novels} = \frac{3}{8} \times \text{total rentals} \)
For example, if the total number of rentals is 640, then the number of mystery novels rented is \( \frac{3}{8} \times 640 = 240.0 \).
inputFormat
The input consists of a single integer total_rentals
representing the total number of book rentals. The input is read from standard input (stdin).
outputFormat
Output a single floating point number representing the number of mystery novels rented. The output should be written to standard output (stdout).
## sample640
240.0