Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 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.     cout<<"vvedite x"<<endl;
  8.     cin>>x;
  9.     if (x>-2 || x<3){
  10.         for(x=-2;x<=3;x+=0,5){
  11.             if(x==0){
  12.                 y=log(x,e)abs(5-pow(x,3));
  13.             }
  14.             else if (x<=2){
  15.                 y=pow(x,2);
  16.             }
  17.             else (x>2){
  18.                 y=log(x);
  19.         }
  20.     }else{
  21.         cout<<"Incorrect x";
  22.     }
  23.     cout<<"y="<<y;
  24.     getch();
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement