From: Isaac Toothyxdip Date: 2008-02-18T10:17:58+09:00 Subject: Re: displaying user inputed arrays Ok now im trying to ask for 5 words ON THE SAME LINE then it prints the first word also once i get this to work then im going to make it where it has 2 variables. one is the array and it's adding 1 so the value of the array is diff. then ill use that same array as a text variable to show which array your on. First this is my code with help from the first reply puts "Ok now enter in words just be sure there are spaces inbetween them" word_group = [] words_group = gets.chomp.split(" " + " ") word_group<< words_group print "The first word you entered was: #{word_group[0]}" this is my goal of a running program: ____________________________________________________________________ | |Ok now enter in 5 words just be sure there are spaces inbetween them: Jo, Mo, Lo, Ho, No |The first word you entered was Jo followed by Mo |____________________________________________________________________ Next this is what i want it to look like once that works (im going to have it check for how many words there are and for ever word it creates The (First, Second, Third, Etc) word you entered was _______ and for the first, second, third, etc it will be the same var as the var stating the array number like i =+1 word[i] so that the numbers will be the same and then it will add 1 for ever word ____________________________________________________________________ | |Ok now enter in 5 words just be sure there are spaces inbetween them: Jo, Mo, Lo, Ho, No |The first word you entered was Jo |The second word you entered was Mo |The third word you entered was Lo |The fourth word you entered was Ho |The fifth word you entered was No |_______________________________________________________________________________________________ yeah i understand that it might be hard to understand what im asking so if more explaining is needed i will -- Posted via http://www.ruby-forum.com/.