Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     setlocale(LC_ALL, "Rus");
  6.     double x,y,z;
  7.     cout<<"Введите x,y,z"<<endl;
  8.     cin>>x;
  9.     cin>>y;
  10.     cin>>z;
  11.     if(x<0)
  12.     {
  13.         z=(x-5)*y;
  14.         y=(z+63)*x;
  15.         cout<<"y="<<y<<endl;
  16.     }
  17.     else if(x>=0 && x<10)
  18.     {
  19.         z=x/y-5;
  20.         y=x-10;
  21.         z=y*x;
  22.         cout<<"z="<<z<<endl;
  23.     }
  24.     else if(x>10)
  25.     {
  26.         z=x*x+y*y;
  27.         cout<<"z="<<z<<endl;
  28.     }
  29.     system("pause");
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement