static void Main(string[] args) { DigitsSum x = new DigitsSum(); Console.WriteLine(x.lastDigit(12345)); Console.ReadLine(); }