Question: what is the difference between logical error and runtime error?
Answer: A logic error (or logical error) is a mistake in a program's source code that results in incorrect or unexpected behavior. It is a type of runtime error that may simply produce the wrong output or may cause a program to crash while running. ... By contrast, runtime errors are due to events beyond the scope of the program.