I am working on a Text Based Game in Visual Studio (Console Application) I am very confused on what to do with .contains checking for numbers with only using one If statement
if (inputname.Contains("0"))
{
Console.Clear();
Console.WriteLine("Name can not contain numbers");
Thread.Sleep(500);
Console.WriteLine("\n");
goto start;
}
Aucun commentaire:
Enregistrer un commentaire