Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <vcl.h>
- #include <iostream>
- #include <conio.h>
- #include <string.h>
- #include <stdlib.h>
- #include<stdio.h>
- #include<windows.h>
- #include<math>
- using namespace std;
- int main()
- {
- system("chcp 1251 > text");
- double x,y,k;
- cout << "x="; cin >> x;
- cout << "y="; cin >> y;
- if(x>=-1 && x<=0 && y<=0 && y>=-1) //1
- k=x/y;
- k>=1;
- cout << "popal" << endl;
- else
- if(x>=0 && x<=1 && y>=0 && y<=1) //2
- k=x/y;
- k<=1;
- cout << "popal" << endl;
- else
- if(x>=1 && x<=2 && y>=1 && y<=1.5) //3
- k=x/y;
- k>=1;
- cout << "popal" << endl;
- else
- if(x>=-2 && x<=-1 && y>=-1.5 && y<=-1) //4
- k=x/y;
- k<=1;
- cout << "popal" << endl;
- else
- if(x>=-1 && x<=0 && y>=-1.5 && y<=-1) //5
- cout << "popal" << endl;
- else
- if(x>=0 && x<=2 && y>=-1.5 && y<=-1) //6
- cout << "popal" << endl;
- else
- if(x>=1 && x<=2 && y>=-1 && y<=0) //7
- cout << "popal" << endl;
- else
- if(x>=0 && x<=1 && y>=1 && y<=1.5) //8
- cout << "popal" << endl;
- else
- if(x>=-2 && x<=0 && y>=0 && y<=1.5) //9
- cout << "popal" << endl;
- else
- if(x>=-2 && x<=-1 && y>=0 && y<=1) //10
- cout << "popal" << endl;
- else
- cout << " ne popal" << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement