m=Array.new(20) for i in 1..20 m[i]=rand(1001) end puts m.min
if i try to run it, ruby says:

What's wrong with my code?




1 Votes
Posted 24 March 2012 - 01:24 PM

POPULAR
m=Array.new(20) {|i| rand(1001)}
puts m.min
Posted 24 March 2012 - 01:26 PM
This post has been edited by xclite: 24 March 2012 - 01:26 PM
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
