"Divide by zero" is NOT a logical error it is runtime error.
Runtime errors: These occur when the program is running and something goes wrong.
For example,