Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

The Type bool [4/9]

The expressions on the left and right side of operator or are its operands.

Operator or returns true when either of its operands is true.

After running the program, modify it so that it also outputs the result of expression 2<1 or 3<4.

After that, modify the program so that it outputs the result of three more expressions:

  • not false or true
  • not (false or true)
  • (not false) or true

Loading...