You would do something like this:
static void Main(string[] args)
{
Console.WriteLine(';Type Exit to break';);
string s = string.Empty;
while(s.ToUpper() != ';EXIT';)
{
s = Console.ReadLine();
//do something
Console.WriteLine(';Your result is ....';)
}
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment