본문 바로가기

Logic: AND, OR, NOT

A club that checks both ends of the age

  • A club takes members only from 11 to 16. One test cannot say both ends.
  • AND is TRUE only when both tests are TRUE: Age >= 11 AND Age <= 16.
  • NOT flips a Boolean. The tasks use it on a flag, not on a number.

AND joins two tests: age 14 passes both, so the entry is accepted; age 10 fails the first

교재 자료

로그인 또는 계정 만들기

IGCSE, A-Level & AP