Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- int x1,y1,sh1,v1,x11,y11,sh2,v2;
- x1=1;
- y1=1;
- sh1=2;
- v1=2;
- x11=3;
- y11=3;
- sh2=2;
- v2=2;
- if (x1<=x11 && x1+sh1>=x11 && y1<=y11 && y1+v1>=y11){
- cout<<"popal 1"<<endl;
- }
- if (x1<=x11+sh2 && x1+sh1>=x11+sh2 && y1<=y11 && y1+v1>=y11){
- cout<<"popal 2"<<endl;
- }
- if (x1<=x11+sh2 && x1+sh1>=x11+sh2 && y1<=y11+v2 && y1+v1>=y11+v2){
- cout<<"popal 3"<<endl;
- }
- if (x1<=x11 && x1+sh1>=x11 && y1<=y11+v2 && y1+v1>=y11+v2){
- cout<<"popal 4"<<endl;
- }
- }
Add Comment
Please, Sign In to add comment