AddO1f

Lab1_2

Oct 11th, 2015
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. int _tmain(int argc, _TCHAR* argv[])
  2. {
  3.     double x,a,b,h;
  4.     cout << "Enter x:";
  5.     cin >> x;
  6.     a=(x*x+2*x-3+(x+1)*sqrt(x*x-9))/(x*x+2*x-3+(x+1)*sqrt(x*x-9));
  7.     b=sqrt((x+3)/(x-3));
  8.     h=a-b;
  9.     cout << "Result h=" << h << endl;
  10.     _getch();
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment