Cant move forward-spinning wheel


#1

print "Vick"
first_name = gets.chomp
first_name.capitalize!

print "vad"
last_name = gets.chomp
last_name.capitalize!

print "fesi"
city = gets.chomp
city.capitalize!

print "India"
state = gets.chomp
state.upcase!

puts "Your name is #{first_name} #{last_name} and you're from #{city}, #{state}!"

It only gives me "Vick" in the output box and the wheel starts to spin and thats it
Can you please help?

Replace this line with your code.


#2

You've got code that tells ruby to wait for user input.
You're the user, it's waiting for your input


#3

Ok thanks, how do i fix it? really new at this, so any help will be appreciated


#4

I suppose you could type something and hit enter.

Or remove the code that waits for user input if that isn't desirable


#5

got it!! thanks, I realized my mistake with your help!
thanks a lot


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.