Programming Practice

Consider the following multivariate fractional polynomial:

Write a C program to read the values of variables x, y, and z. Compute and print the resulting value of f(x, y, z). Print the result four digits after the decimal point. Repeat the program until the input of x, y, z are all zero.

@

Enter the values of x, y, and z: 30.24 22.38 -50.3
The result of f(30.2400, 22.3800, -50.3000) is 6.3740.

-----------------------------------------------------------

Enter the values of x, y, and z: -10.45 25.55 50.82
The result of f(-10.4500, 25.5500, 50.8200) is 27.9423.

-----------------------------------------------------------

Enter the values of x, y, and z: 20.88 50.14 30.29
The result of f(20.8800, 50.1400, 30.2900) is -4.5678.

-----------------------------------------------------------

Enter the values of x, y, and z: 0.0 -23.4 3.6
The result of f(0.0000, -23.4000, 3.6000) is 0.0000.

-----------------------------------------------------------

Enter the values of x, y, and z: 0.0 0.0 0.0
The result of f(0.0000, 0.0000, 0.0000) is 0.0000.

-----------------------------------------------------------