Integer Division by Zero
examples/dart-intro/integer_division_by_zero.dart
div(x, y) { return x ~/ y; } main() { print(div(2, 1)); print(div(1, 0)); print(div(3, 1)); }
2 Breaking on exception: IntegerDivisionByZeroException
div(x, y) { return x ~/ y; } main() { print(div(2, 1)); print(div(1, 0)); print(div(3, 1)); }
2 Breaking on exception: IntegerDivisionByZeroException