sloshedmr_bones wrote:
do
{
Console.WriteLine("Would you like to try again? ", answer);
counter = Convert.ToString(Console.ReadLine);
}
while (anwer > yes);
The braces define your loop. The while goes back to where it says do. Notice that the rest of your code, the stuff you want to run to 'try again' is outside the do/while loop and so will not be run. Also note that > is not an acceptable test for strings. != is the test for if answer does not equal yes. If yes is a constant, not a variable, it needs to be in quotes. If you want a do while loop to ever terminate, it needs to be checking a variable that is changed within the loop ( in this case, counter, not answer ). Console.ReadLine is a method, it needs () after it. It returns a string. Convert.ToString is not needed.
This code should not even compile, you should learn to read error messages and diagnose them, and post them here along with the line that generates them, if you want us to fix them for you.