Advertisement
Pafnytiu

program 8

Sep 28th, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include<iostream>
  2. #include<cmath>
  3. using namespace std;
  4. int main()
  5. {
  6.     float x, y;
  7.     cout << "Write x" << endl;
  8.     cin >> x;
  9.     if ( (x=-1) || (x= 1))
  10.         cout << "error" << endl;
  11.     else
  12.     {
  13.         y = ((log(pow(pow(x, 2), 2) - 1)*log(1 + x)));
  14.         cout << "y=" << y << endl;
  15.     }
  16. system("pause");
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement