Resolved Issue #1 (Divide by zero)

Added a check for dividing by zero. Program now prints an error and
exits when the user attempts to divide by zero.