Saltar al contenido

Logic: AND, OR, NOT

A club that checks your age

  • A thermostat keeps a room between 18 and 24 degrees. One test cannot say both ends.
  • AND is TRUE only when both tests are TRUE.
  • Write the variable on each side: Temp >= 18 AND Temp <= 24.

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

Material

Iniciar sesión o crear cuenta

IGCSE, A-Level & AP