主页
C++
C++ 逻辑运算符
demo_oper_logical3
运行 ❯
×
更改方向
保存代码
更改主题
#include
using namespace std; int main() { int x = 5; int y = 3; cout << (!(x > 3 && x < 10)); // returns false (0) because ! (not) is used to reverse the result return 0; }