Division by Zero
examples/dart-intro/division_by_zero.dart
div(x, y) { return x/y; } main() { print(div(2, 1)); print(div(1, 0)); print(div(3, 1)); }
2.0 Infinity 3.0
div(x, y) { return x/y; } main() { print(div(2, 1)); print(div(1, 0)); print(div(3, 1)); }
2.0 Infinity 3.0