A logic error is a mistake that does not prevent the program from running but causes it to produce incorrect results.
What type of error produces incorrect results?
Any code in a program that produces the wrong output or results even while it runs completely is considered a logic error. A program with a logic flaw could occasionally provide the right answer while other times providing the incorrect one. The most challenging faults to identify and fix are often those that involve logic.
What Is syntax error and logical error?
A syntax error is a mistake that affects how a group of letters or tokens that are meant to be written in a specific computer language should be organized. A logical error is a programming error that affects how a program behaves but does not result in abnormal program termination.
Learn more about error: https://brainly.com/question/18271225
#SPJ4