what is the logical error in course in miracles

by Reva McLaughlin 5 min read

What is a logical error?

A3. We can define a logical error as a bug in the logic or algorithm of a program.

What is the assignment operator in if condition?

In this program logic, the user needs to check divisibility by 10. But, in the ‘if’ condition instead of using ‘==’ it is ‘=’ which is the assignment operator. Therefore, we need the ‘==’ operator to check if the remainder is equal to 0 or not.

image