fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. double x = 1.54, y = 3.26;
  5. double z, f;
  6.  
  7. // обчислення z = w(x,y)
  8. z = 15.0 / (x + exp(y));
  9.  
  10. // обчислення f(x,y,z)
  11. f = pow(z, 3) / (x + y * sqrt(pow(x, 2) + pow(z, 2)));
  12.  
  13. printf("x = %.2f, y = %.2f\n", x, y);
  14. printf("z = %.6f\n", z);
  15. printf("f(x,y,z) = %.6f\n", f);
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0s 5324KB
stdin
Standard input is empty
stdout
x = 1.54, y = 3.26
z = 0.543684
f(x,y,z) = 0.023413