Advertisement
Hanaigi

Untitled

Sep 14th, 2023
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. 1)
  2. #include <stdio.h>
  3. #include <math.h>
  4. int main() {
  5. float y = 2, t = 5 / (1 + y * y), z = 4;
  6. float x = 2 * 2 + 3 * sinh(t) - z;
  7. printf("%.2f\n", x);
  8. }
  9. -------------------------------
  10. 2)
  11. #include <stdio.h>
  12. #include <math.h>
  13. int main() {
  14. float t = 0.5, z = 6, y = t + 2 * (1 / tan(z));
  15. float x = 3 * pow(y,2) / (4 * tan(z) - 2 * pow(t,2));
  16. printf("%.2f", x);
  17. }
  18. --------------------------------
  19. 3)
  20. #include <stdio.h>
  21. #include <math.h>
  22. int main() {
  23. float t = 1, z = 3, y = sin(t);
  24. float x = 4 * pow(y, 2) / (4 * y * exp(z) - 2 * pow(t, 3));
  25. printf("%.2f", x);
  26. }
  27. ------------------------------
  28. 4)
  29. #include <stdio.h>
  30. #include <math.h>
  31. int main() {
  32. float t = 2, z = 3, y = cos(t + z);
  33. float x = 4 * log(pow(y, 3)) - z / t;
  34. printf("%.2f", x);
  35. }
  36. ------------------------------
  37. 5)
  38. #include <stdio.h>
  39. #include <math.h>
  40. int main() {
  41. float y = 2, z = 4, t = sin(2 + z);
  42. float x = 6 * pow(t, 2) - ((1 / tan(z)) + 1) / pow(y, 2);
  43. printf("%.4f", x);
  44. }
  45. ------------------------------
  46. 6)
  47. #include <stdio.h>
  48. #include <math.h>
  49. int main() {
  50. float z = 1, t = 2, y = tan(t) + z;
  51. float x = (8 * pow(z, 2) + 1) / (y * exp(t) + pow(t, 2));
  52. printf("%.2f", x);
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement