'commit'
This commit is contained in:
13
C++课程/第十课逻辑表达式和条件表达式/p75.cpp
Normal file
13
C++课程/第十课逻辑表达式和条件表达式/p75.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user