- Write a function
print_formula()
that calculates and prints the value according to the given formula:Q = Square root of [(2 * C * D)/H]
. The fixed value ofC
is 50 and and the fixed value ofH
is 30.D
is the variable whose values should be assigned through the parameters.
print_formula(100,150,180)
- 18,22,24
-
If the output received is in decimal form, it should be rounded off to its nearest value (for example, if the output received is
26.0
, it should be printed as26
). -
In case of input data being supplied to the question, it should be assumed to be a console input.