Advertisement
Mr_D3a1h

Untitled

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