Java ArithmeticException
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
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.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 58%