fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main()
  5. {
  6. float x, a, b, y, z;
  7.  
  8. printf("Введіть x: ");
  9. scanf("%f", &x);
  10.  
  11. printf("Введіть a: ");
  12. scanf("%f", &a);
  13.  
  14. printf("Введіть b: ");
  15. scanf("%f", &b);
  16.  
  17. if (x > 3)
  18. {
  19. y = (log(x - 3) + 4) / (x * x + 12);
  20. z = (pow(y + 7, 1.0 / 3.0) + a) / (sin(b) + pow(y + 7, 1.0 / 3.0));
  21.  
  22. printf("y = %f\n", y);
  23. printf("z = %f\n", z);
  24. }
  25. else
  26. {
  27. printf("Помилка: x має бути більше 3\n");
  28. }
  29.  
  30. return 0;
  31. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
Введіть x: Введіть a: Введіть b: Помилка: x має бути більше 3