static void Main(string[] args) { int n; int amount = 0; Console.Write("Enter an integer number: "); n = int.Parse(Console.ReadLine()); UniqueNumbers cdn = new UniqueNumbers(); amount = cdn.FindUniqueNumbers(n); Console.WriteLine("Amount of different numbers is " + amount); Console.ReadKey(); }