Objective
Write a program that asks the user for two numbers and tries to divide the first by the second. If an error occurs (e.g., division by zero), it should display a custom message instead of crashing.
10
0
Cannot divide by zero.
Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.
Start exercise