Which of the following is a logic error?

A. using one equal sign to compare two values
B. forgetting the quotation marks around a string
C. dividing by the wrong number when finding an average
D. putting a space in a variable name

C. dividing by the wrong number when finding an average