Your strings are stored in an array.
Arrays are accessed through the index number of their position in the array. Think of it like a train, where the engine is the first element, at position zero....
Type: Posts; User: jps
Your strings are stored in an array.
Arrays are accessed through the index number of their position in the array. Think of it like a train, where the engine is the first element, at position zero....
If you want something to happen only once, then inside the body of a loop may not be the best place for that statement.
Move your print statement out of the loop. Don't forget to decide which word...
Welcome to the forum.
Please use code tags when posting code. See the Announcements page if you need hlep.
What does the program do so far? Does it compile and run? Where are you stuck?