Logic errors occur when there is a fault in the logic or structure of the problem.
Logic errors do not usually cause a program to crash. However, logic errors can cause a program to produce unexpected results.
More than one type of logic error may exist. Parts of the program may:
Any one or more of these errors may exist in a program, and each will cause the program to behave unexpectedly.