Hi,
I’m obviously new to Ruby, and I can;t figure out why my code will not
work.
print “Hello, what is your number?”
my_number = gets.to_i
print “Oh, so your number is #{my_number}, would you like me to multiply
it by 2?”
user_answer = gets.upcase
def
time_to_play
{
my_number * 2
}
end
puts time_to_play