static void Main()
        {
            string CName, City, gender, email;

            int[] mark = new int[3] {
                89, 90, 67
            };
            Console.WriteLine("Enter CName");
            CName = Console.ReadLine();
            Console.WriteLine("Enter City");
            City = Console.ReadLine();
            Console.WriteLine("Enter gender");
            gender = Console.ReadLine();
            Console.WriteLine("Enter email");
            email = Console.ReadLine();
            Eg2 eg2 = new Eg2();

            eg2.DisplayUserDeatils(CName, City, gender, email);
            Console.WriteLine("sum of marks is:{0}", eg2.Total(mark));
            Console.WriteLine("Exit Msg added");
            Console.ReadLine();
        }
        static void Main()
        {
            string CName, City, gender, email;

            int[] mark = new int[3] {
                89, 90, 67
            };
            Console.WriteLine("Enter Cname");
            CName = Console.ReadLine();
            Console.WriteLine("Enter City");
            City = Console.ReadLine();
            Console.WriteLine("Enter gender");
            gender = Console.ReadLine();
            Console.WriteLine("Enter email");
            email = Console.ReadLine();
            Console.WriteLine("Enter age");
            int age = Convert.ToInt32(Console.ReadLine());
            Eg2 eg2 = new Eg2();

            eg2.DisplayingUserDetails(CName, City, gender, email, age);
            Console.WriteLine("Sum of Marks is:{0}", eg2.Total(mark));

            Console.Read();
        }