Beispiel #1
0
        static void Main(string[] args)
        {
            DayCount dayCount = new DayCount();
            int      month, year;

            Console.WriteLine("Enter the month in number:");
            month = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("Enter the year :");
            year = Convert.ToInt32(Console.ReadLine());
            dayCount.setDate(month, year);
            dayCount.display();
            Console.ReadLine();
        }
Beispiel #2
0
 static void Main(string[] args)
 {
     DayCount dayCount = new DayCount();
     int month, year;
     Console.WriteLine("Enter the month in number:");
     month = Convert.ToInt32(Console.ReadLine());
     Console.WriteLine("Enter the year :");
     year = Convert.ToInt32(Console.ReadLine());
     dayCount.setDate(month, year);
     dayCount.display();
     Console.ReadLine();
 }