Divide by zero is Infinity
- Infinity
puts divide(8, 2)
puts divide(8, 0)
puts divide(8, 4)
def divide(x, y)
return x/y
end
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
puts divide(8, 2)
puts divide(8, 0)
puts divide(8, 4)
def divide(x, y)
return x/y
end