Ah there we go, I just had trouble placing the exclamation mark, I have one more question now. This code is part of a bigger project. After the pig latin code has run, it doesn't run again nor does it run the next set of code. Here is my project code below.
//Write a flag controlled while loop that will convert an input word to pig latin. The flag should be set to false when the word “end” is entered and no pig latin word displayed. You may assume that the statement pigLatin = pl.translate(word); will convert the input word to pig latin correctly. The code for the input of the initial word is provided. You may assume that at least one word will be translated.
//Write a while loop that will count the number of even numbers entered. The loop should stop when 0 is entered and 0 should not be counted. You may use any form of while loop you desire. The code for the input of the initial number is provided.