Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "Rus");
- double x,y,z;
- cout<<"Введите x,y,z"<<endl;
- cin>>x;
- cin>>y;
- cin>>z;
- if(x<0)
- {
- z=(x-5)*y;
- y=(z+63)*x;
- cout<<"y="<<y<<endl;
- }
- else if(x>=0 && x<10)
- {
- z=x/y-5;
- y=x-10;
- z=y*x;
- cout<<"z="<<z<<endl;
- }
- else if(x>10)
- {
- z=x*x+y*y;
- cout<<"z="<<z<<endl;
- }
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement