puts 'Hello, what year were you born in?' year = gets.chomp puts 'And month?' month = gets.chomp puts 'And day?' day = gets.chomp birthday = Time.mktime(year, month, day) puts 'you were born on ' + birthday.to_s + '.' #print a "spank" for each year the responder was born. #First, need to figure out how many years they were born. #Then, print out the "spank"s.
This program isn’t complete, but I thought I’d post it anyway. Will try to finish later tonight.