static void Main(string[] args) { String numberOfInputs = Console.ReadLine(); String inputValues; int loopCounter = 0; Segmentolek testSegmentolek = new Segmentolek(); while (loopCounter != int.Parse(numberOfInputs)) { inputValues = Console.ReadLine(); int segmentolekAge = testSegmentolek.CalculateAge(inputValues); Console.WriteLine(segmentolekAge); loopCounter++; } }
static void Main(string[] args) { String numberOfInputs = Console.ReadLine(); String inputValues; int loopCounter = 0; Segmentolek testSegmentolek = new Segmentolek(); while (loopCounter != int.Parse(numberOfInputs)) { inputValues = Console.ReadLine(); int segmentolekAge = testSegmentolek.CalculateAge(inputValues); Console.WriteLine(segmentolekAge); loopCounter++; } }