Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- #include <iomanip>
- using namespace std;
- int main1_1()
- {
- // No I.19
- double a, b, c, y;
- cout << "Enter a, b, c = ";
- cin >> a >> b >> c;
- cout << endl;
- y = ( b + sqrt(pow(b, 2) + 4*a*c) ) / (2*a) - pow(a,3) + pow(b, -2);
- cout << "Result = "<< setprecision(5)<< y << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement