Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <iostream>
  2. #include "math.h"
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. double x, b, a, y;
  9. cout << "Enter number x=" << endl;
  10. cin >> x;
  11. cout << "Enter number b=" << endl;
  12. cin >> b;
  13. cout << "Enter number a=" << endl;
  14. cin >> a;
  15. if (x>=7)
  16. {
  17. y = abs(x/b)/a;
  18. }
  19. if (x<=-8)
  20. {
  21. y = x/(sqrt(b)*a);
  22. }
  23. if (-6<x<1)
  24. {
  25. y = x/a;
  26. }
  27.  
  28. cout << "Number y=" << y << endl;
  29. return 0;
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement