Care to take a minute and help out a newbie?
I’ve tried everything I can think of, but I don’t come from a
programming background.
You might like to work through some of the beginning-level tutorials
such as Try Ruby, then.
And please, ask your general Ruby questions on the Ruby list. They’re
off topic for the Rails list.
puts ‘What is your first name?’
first_name = gets.chomp
puts ‘Middle name?’
middle_name = gets.chomp
puts ‘Last name?’
last_name = gets.chomp
puts 'did you know there are ’ first_name + middle_name + last_name +
‘characters’
puts ‘in your name’ + first_name + middle_name + last_name + ‘?’
Syntax error or no, this program won’t do what you want. You need to
learn how to take the length of a string (look at the docs for class
String and you’ll find what you need).