Read two integers a and b and print a div b. If b is 0, catch the resulting exception and print "Cannot divide by zero" instead of crashing.
Input / Output
Input: two integers "a b". Output: the whole-number division result, or "Cannot divide by zero".
Examples
Input
10 2
Expected Output
5
Input
10 0
Expected Output
Cannot divide by zero
+ 2 hidden tests checked on Submit.
Main.pas is the entry point. Add extra units for OOP exercises — they compile together.
Run your code to see test results here.