Files
python/C++课程/第十课逻辑表达式和条件表达式/p75.cpp

14 lines
220 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include <iostream>
using namespace std;
int main() {
double x, y;
cin >> x >> y;
if (x >= -1 && x <= 1 && y >= -1 && y <= 1) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}