#C14845. New Garden Length Calculation

    ID: 44539 Type: Default 1000ms 256MiB

New Garden Length Calculation

New Garden Length Calculation

You are given the dimensions of an existing garden: its length and width, and the width of a new garden. Your task is to calculate the length of the new garden such that the new garden maintains the same proportion as the existing one.

The proportion is maintained by the formula:

\( new\_length = \frac{small\_length}{small\_width} \times new\_width \)

For example, if the existing garden is 5 units long and 3 units wide, and the new garden is 12 units wide, then the new garden's length should be 20 units.

inputFormat

The input consists of three space-separated numbers: small_length, small_width, and new_width. These numbers can be integers or floating point values.

For example:

5 3 12

outputFormat

Output a single number which is the calculated new garden length. The output should be a floating-point number.

For example:

20.0
## sample
5 3 12
20.0

</p>