Handle arithmetic exception

Report a typo

Write a program that calculates the division of two input numbers. It may throw an ArithmeticException. Fix it to avoid the exception.

In the case when the exception can happen, the corrected program should output: Division by zero, please fix the second argument!.

Sample Input 1:

8
2

Sample Output 1:

4

Sample Input 2:

8
0

Sample Output 2:

Division by zero, please fix the second argument!
Write a program in Kotlin
fun main() {
// put your code here
}
___

Create a free account to access the full topic