Content deleted Content added
→Ruby version: Removed distracting begin/rescue block. |
|||
Line 75:
<source lang="ruby">
Array.new(11) { gets.to_i }.reverse.each do |x|
▲ y = Math.sqrt(x.abs) + 5*x ** 3
▲ puts "#{x} TOO LARGE"
end
</source>
Ruby handles numerical overflow by returning Infinity, which is greater than 400.
==References==
|