Task

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




def divide: x by: y {
  try {
    x / y
  } catch DivisionByZeroError => e {
    e message println # prints error message
  }
}
 