W3School TIY Editor

  • W3School 在线教程
  • 改变方向
  • 暗黑模式
​x
 
#include <iostream>
using namespace std;
​
int main() {
  int x = 5;
  int y = 3;
  cout << (x > 3 || x < 4); // 返回 true (1),因为其中一个条件为真(5 大于 3,但 5 不小于 4)
  return 0;
}