From: Karthikeyan A k Date: 2012-08-27T21:58:34+09:00 Subject: Re: A Ruby Book (free to use) OK, fixed the bug on page 32, but others.... I think that's OK. Thanks, spot more. unknown wrote in post #1073171: > Am 22.08.2012 08:10, schrieb Karthikeyan A k: >> Hello people, I have written a book on Ruby programming language. >> Download it from here http://is.gd/r2012 > > Though appreciating the effort that was put into this, > ........ > > I only browsed a couple of pages and I found: > > - a wrong algorithm (on p. 32) > > # finds the greatest of three numbers > a,b,c = 3,7,5 > ..... > else puts "c = #{c} is greatest" > end > > Now try that with a,b,c = 4,4,3 ! > => c = 3 is greatest > ...... > end > > ...... -- Posted via http://www.ruby-forum.com/.