Advertisement
Mr_D3a1h

Untitled

Dec 1st, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. #include <iostream>
  2. #include "math.h"
  3. using namespace std;
  4. double func(double a, double b, double c) {
  5. double pervoe, vtoroe, qub, mod, mint, res1;
  6. double res;
  7. vtoroe = a * a;
  8. qub = b * b * b;
  9. if (vtoroe - qub == 0)
  10. pervoe = 0;
  11. else
  12. pervoe = sin(vtoroe - qub);
  13. mod = sqrt(fabs(a * c) + (b * b));
  14. mint = pervoe - mod;
  15. res1 = sin(mint);
  16. res = pow(res1, 1 / 3.);
  17.  
  18. return res;
  19. }
  20. int main() {
  21. double A, B, C, result;
  22. while (true) {
  23. cout << "\t Введите ваше говнище по порядку,пж \n";
  24. cin >> A >> B >> C;
  25. result = func(A, B, C);
  26. cout << result << endl;
  27. }
  28. return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement