static void Main(string[] args) { InterestingDigits x = new InterestingDigits(); Console.WriteLine(x.digits(9)); Console.ReadLine(); }