Esempio n. 1
0
        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.DisplayingUserDetails(CName, City, gender, email);
            Console.WriteLine("sum of marks is : {0}", eg2.Total(mark));
            Console.Read();
        }
Esempio n. 2
0
        static void Main()
        {
            string Cname, City, Gender, Email;

            int[] mark = new int[3] {
                80, 79, 56
            };
            Console.WriteLine("Enter the Customer Name:");
            Cname = Console.ReadLine();
            Console.WriteLine("Enter the City:");
            City = Console.ReadLine();
            Console.WriteLine("Enter the Gender:");
            Gender = Console.ReadLine();
            Console.WriteLine("Enter the Email:");
            Email = Console.ReadLine();

            Eg2 eg2 = new Eg2();

            eg2.DisplayingUserDetails(Cname, City, Email, Gender);
            Console.WriteLine("sum is:{0}", eg2.Total(mark));
            Console.Read();
        }