using System; public class Test { public static void Main() { string str = "2001"; if (Char.IsDigit(str[0])) { Console.WriteLine ("Positive digit"); } else { Console.WriteLine ("Not digit"); } } }