The usual way to handle this is with a "while" loop.
string text = Console.ReadLine();while(text != "done"){ // The rest of your code goes here. // Get the next input. text = Console.ReadLine();}
No comments:
Post a Comment