Задачі
Java ArithmeticException
Java ArithmeticException
Two integers a and b are given. Find a / b (integer division). Catch exception if b = 0. Use try-catch in your program.
Input
Each line contains two integers a and b.
Output
If b = 0, print message "**Division by zero**". Otherwise print a / b.
Вхідні дані #1
4 0 9 3 7 0 7 1 18 9
Вихідні дані #1
Division by zero 3 Division by zero 7 2