主页
C++
C++ 条件语句中的逻辑运算符
demo_if_and
运行 ❯
×
更改方向
保存代码
更改主题
#include
using namespace std; int main() { int a = 200; int b = 33; int c = 500; if (a > b && c > a) { cout << "Both conditions are true"; } return 0; }
Both conditions are true