Trev <(E-Mail Removed)> wrote:
> I'm learning C# and trying to write the program below, everything
> works fine until the last section:
>
> Console.Write("Would you like to play again y/n: ");
> again = Console.ReadLine();
>
> if (again.ToLower() == "y")
> {
> ????
> }
> else
> Console.WriteLine("GoodBye");
>
>
> How do I loop the program to start again, I tried copying the whole
> program into the if statement but this doesn't work any ideas?
Well, you want to play *while* the user is interested, right...
Does that give you enough of a hint?
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too