Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. #include<iostream>
  2. #include<conio.h>
  3. #include<math.h>
  4. using namespace std;
  5. int main(){
  6.     double x,y;
  7.     const float = 2.17F;
  8.     cout<<"vvedite x"<<endl;
  9.     cin>>x;
  10.     if (x>-2 || x<3){
  11.         for(x=-2;x<=3;x+=0,5){
  12.             if(x==0){
  13.                 y=log(abs(5-pow(x,3)),e);
  14.                 cout<<"y="<<y;
  15.             }
  16.             else if (x<=2){
  17.                 y=pow(x,2);
  18.                 cout<<"y="<<y;
  19.             }
  20.             else{
  21.                 y=log(x);
  22.                 cout<<"y="<<y;
  23.         }
  24.     }else{
  25.         cout<<"Incorrect x";
  26.     }
  27.  
  28.     getch();
  29.     return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement