Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include<iostream>
  2. #include<iomanip>
  3. #include<cmath>
  4. using namespace std;
  5. int main()
  6. {
  7. double x = 0;
  8. cout << "Enter x: ";
  9. cin >> x;
  10. double z1 = (x*x+2*x-3+(x+1)*sqrt(x*x-9))/(x*x-2*x-3+(x-1)*sqrt(x*x-9));
  11. double z2 = sqrt((x+3)/(x-3));
  12. cout <<fixed<<setprecision(2)<<z1<<" "<<z2;;
  13. system("pause>0");
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement