Mr_D3a1h

Untitled

Dec 1st, 2020
579
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include "math.h"
  3. using namespace std;
  4. double func(double a,double b,double c)
  5. {
  6.     double pervoe,vtoroe,qub,mod,mint,res1;
  7.     double res;
  8.     vtoroe = a*a;
  9.     qub = b*b*b;
  10.     if (vtoroe-qub == 0)
  11.         pervoe = 0;
  12.     else
  13.         pervoe = sin(vtoroe-qub);
  14.     mod = sqrt(fabs(a*c)+(b*b));
  15.     mint = pervoe - mod;
  16.     res1 = abs(sin(mint));
  17.     res = pow(res1,1/3.);
  18.    
  19.     return res;
  20.    
  21. }
  22.     int main()
  23. {
  24.     double A,B,C,result;
  25.     while(true)
  26.     {
  27.         cout << "\t Введите значения: \n";
  28.         cin >> A >> B >> C;
  29.         result = func(A,B,C);
  30.         cout << result << endl;
  31.        
  32.     }
  33.     return 0;
  34. }
  35.  
RAW Paste Data