#include <iostream>
#include <exception>

double divide(int a, int b)
{
  if (b == 0)
  {
    throw std::exception("Nenner ist null");
  }
  return a / static_cast<double>(b);
}

int main()
{
  std::cout << divide(10, 3) << std::endl;
  std::cout << divide(10, 0) << std::endl;
  return 0;
}
