In
computer programming, a
logic error is a
bug in a program that causes it to operate incorrectly, but not to terminate abnormally (or
crash). A logic error produces unintended or undesired output or other behaviour, although it may not immediately be recognised as such.