Exemplo n.º 1
0
        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++;
            }
        }
Exemplo n.º 2
0
        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++;
            }
        }