Lets say i have this
Console.WriteLine "Enter your number or type exit and press enter to exit program";
string input = Console.ReadLine();
if (input == "exit")
{
break;
}
so my question is if you enter "exit" how do i get the console to exit? break just breaks out of the loop it is in? not exit quickly.
also if i wanted to then convert 'input' in to an integer value...is it possible to do this by explicitly converting it?
Thanks