Advertisement
DasShelmer

1.1.19

Oct 12th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. #include <iomanip>
  4. using namespace std;
  5.  
  6. int main1_1()
  7. {
  8.     // No I.19
  9.     double a, b, c, y;
  10.  
  11.     cout << "Enter a, b, c = ";
  12.     cin >> a >> b >> c;
  13.     cout << endl;
  14.  
  15.     y = ( b + sqrt(pow(b, 2) + 4*a*c) ) / (2*a) - pow(a,3) + pow(b, -2);
  16.  
  17.     cout << "Result = "<< setprecision(5)<< y << endl;
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement