Hello
The simplest solution is to try to convert the string to an integer, if it works it is an integer if it does not, it is not...
Console.WriteLine("plz enter a string");
string s = Console.ReadLine();
int result;
if (int.TryParse(s, out result))
{
Console.WriteLine("you have entered the number: " + s);
}
else
{
Console.WriteLine(s + " is not a number");
}
Valery.