Task

Write a function to detect a   divide by zero error   without checking if the denominator is zero.




div_check(X,Y) ->
    case catch X/Y of
        {'EXIT',_} -> true;
        _ -> false
    end.