Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<conio.h>
- #include<math.h>
- using namespace std;
- int main(){
- double x,y;
- cout<<"vvedite x"<<endl;
- cin>>x;
- if (x>-2 || x<3){
- for(x=-2;x<=3;x+=0,5){
- if(x==0){
- y=log(x,e)abs(5-pow(x,3));
- }
- else if (x<=2){
- y=pow(x,2);
- }
- else (x>2){
- y=log(x);
- }
- }else{
- cout<<"Incorrect x";
- }
- cout<<"y="<<y;
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement