Hi i am a beginner c# programmer.
Need help in writing small code program console in inviting the user to enter their phone number without spaces and hyphens (-) Do the validation and if the user has not respected those conditions, display an error message. And create a loop that will re-ask the user to enter same infos to try again.
Console.WriteLine("Please enter your phone no.: \t");
string n = Console.ReadLine();
char[] delimiters = new char[] { ' ', '-' };
string textBox = Convert.ToString(n);
string[] numtel = textBox.Split(delimiters);
bool test = false;