C++ :
#include<iostream> using namespace std; int main(){ int x,y; while(cin>>x>>y){ if(x>=-2&&x<=2){ if(y>=-2&&y<=2) cout<<"True"<<endl; else cout<<"False"<<endl; } else cout<<"False"<<endl; } return 0; }
By signing up a 算道OJ universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 算道OJ universal account