Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "math.h"
- using namespace std;
- int main()
- {
- double x, b, a, y;
- cout << "Enter number x=" << endl;
- cin >> x;
- cout << "Enter number b=" << endl;
- cin >> b;
- cout << "Enter number a=" << endl;
- cin >> a;
- if (x>=7)
- {
- y = abs(x/b)/a;
- }
- if (x<=-8)
- {
- y = x/(sqrt(b)*a);
- }
- if (-6<x<1)
- {
- y = x/a;
- }
- cout << "Number y=" << y << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement