From: Teck Date: 2007-12-16T20:11:20+09:00 Subject: Re: I need help debugging my program What does "birth = year -= age" try to do? Tek On Dec 16, 2007, at 7:48 PM, Icarus Daedalus wrote: > I'm new to Ruby and I'm trying out a very basic user input program. > The > codes below and also I've indicated the line giving me grief. > > puts "What is your name?" > name = gets.chomp > puts "How old are you?" > age = gets.chomp > age.to_s > puts "What year is it?" > year = gets.chomp > birth = year -= age #********************************************* > puts name + " is " + age + " and was born in " + birth