25d5ac7ffd | ||
---|---|---|
.. | ||
readme.md |
readme.md
Lösung: Ausnahmen
begin puts division(1.0, 4.0) puts division(1.0, 0.0) puts division('a', 7) rescue ArgumentError => e puts e rescue ZeroDivisionError => e puts e end