Vote count:
0
I'm on 5.4-5.5 of Chris Pine's learn to program book.
This is on my mac. the text I have in Sublime is:
puts 'Hello there, and what\'s your name?' name = gets.chomp puts 'Your name is ' + name + '? What a lovely name!' puts 'Pleased to meet you, ' + name + '. :)'
and then when I press ruby calc.rb in the terminal.
all i get is:
Hello there, and what\'s your name?
I do have Ruby installed, as the book tells me to make sure I have it installed before 'gets' will work. But it's still not getting the 'gets' in my text editor.
asked 2 mins ago
Aucun commentaire:
Enregistrer un commentaire