Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ ruby exception-1.rb
- Give me the dividend: 5
- Give me the divisor: 0
- exception-1.rb:4:in `/': divided by 0 (ZeroDivisionError)
- from exception-1.rb:4:in `divide'
- from exception-1.rb:21:in `<main>'
- $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement