< Your code > fixed code ------------------- < fine = gets > fine = gets.chomp < if fine.String=="good" > if fine == "good" ----- Original Message ----- From: "viswesh" <visweshwar_03 / rediffmail.com> Newsgroups: comp.lang.ruby To: "ruby-talk ML" <ruby-talk / ruby-lang.org> Sent: Wednesday, May 17, 2006 9:46 AM Subject: Please answer to this code? > can anybody execute it and tell me where i go wrong.please let me know > asap... > > > puts " what is your name" > name = gets.chomp > > puts " hello " + name + " how are you" > > fine = gets > > if fine.String=="good" > puts " good buddy" > else > puts "oh iam sorry" > end > > > -- > Posted via http://www.ruby-forum.com/. >