Which of the following is a logic error?

1 answer

An example of a logic error is when a program performs the wrong calculations due to a mistake in the code, such as using the wrong formula for a calculation or using the wrong variable in a condition.