From: Daniel Schierbeck Date: 2006-05-18T01:33:48+09:00 Subject: Re: Please answer to this code? viswesh wrote: > 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 puts "what is your name?" name = gets.chomp puts "hello #{name}, how are you?" puts gets.chomp == "fine" ? "good, buddy!" : "oh, i'm sorry!" Cheers, Daniel