示例#1
0
        static void isNum()
        {
            ItMath ItMath = new ItMath();

            while (true)
            {
                string input = Console.ReadLine();
                System.Console.WriteLine("input is a number: " + ItMath.OnkoLuku(input));
            }
        }
示例#2
0
        static void isDate()
        {
            ItMath ItMath = new ItMath();

            while (true)
            {
                System.Console.WriteLine("Please input a date: ");
                string input = Console.ReadLine();
                System.Console.WriteLine("input is a date: " + ItMath.OnkoPvm(input));
                input = "";
            }
        }