using System;

namespace MyCompiler {
    class Program {
        public static void Main(string[] args) {
            // printFibonacci(10);
            // Console.WriteLine(isPallendrome(111));
            countMonthEvenOddDays(34);
        }

        static bool isPallendrome(int n){
            int sum=0,r,temp;
            temp = n;

            while(n>0){
                r = n%10;
                sum = (sum*10)+r;
                n = n / 10;
            }

            if(temp == sum){
                return true;
            }else{
                return false;
            }
        }

        
        static void countMonthEvenOddDays(int month){
            if(month < 1 || month > 12){
                Console.WriteLine("Invalid Month, Month must be between 1 to 12.");
                return;
            }

            DateTime currentDate = DateTime.Now;
            int year = currentDate.Year;
            int daysInMonth = DateTime.DaysInMonth(year, month);
            int even = 0;
            int odd=0;
            for(int num=0;num<daysInMonth;num++){
                if(num%2==0){
                    even++;
                }else{
                    odd++;
                }
            }
            Console.WriteLine("Total Even Days : "+even+"; Total Odd Days : "+odd);
        }
        
        static void printFibonacci(int n){
            int a= 0;
            int b = 1;
            if (n <= 0) {
                Console.WriteLine("Invalid input. Please enter a positive integer.");
            } else if (n == 1) {
                Console.WriteLine(a);
            } else
            {
                Console.WriteLine(a+ " "+ b+" ");
                for(int i=2;i<n;i++){
                    int c = a+b;
                    a = b;
                    b = c;
                    Console.WriteLine(c + " ");
                }
            }
        }

        static int sumDigit(int num){
            int sum=0;
            int 
        }
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: