I
Icarus Daedalus
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
Any help you could give me would be appreciated. Thanks!
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
Any help you could give me would be appreciated. Thanks!