示例#1
0
文件: Segmentolek.cs 项目: jotem/SPOJ
        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++;
            }
        }
示例#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++;
            }
        }