Saltar al contenido

Hunt 4: Logic bugs

English

Bugs with no error

  • The hardest bugs give no message. The program runs, but the answer is wrong.
  • Test with the expected output: what should come out? What comes out?
  • Check the first value and the last value of every loop.
Word Meaning
logic bug the code runs, but does the wrong thing
off by one a loop that runs one time too many or too few

Iniciar sesión o crear cuenta

IGCSE, A-Level & AP