Word Chain!

Word Chain! This task is based on a game. In the game you have to think of a word that ends with the last letter of the previous word. For this to work as a program I used 2 variables, current and previous word. With a while loop of the current word, I entered a if statement that basically said if the last letter of this word is the same as the first letter of this word then it will loop. Although if anything else print nope and then loop the input question again. This got all tick which gave me the points

No comments:

Post a Comment