Exemple #1
0
        static void Main(string[] args)
        {
            int iNo;

            Console.Write("Enter the Number : ");
            iNo = Convert.ToInt32(Console.ReadLine());

            AdditionOdd  AOdd  = new AdditionOdd(iNo);
            AdditionEven AEven = new AdditionEven(iNo);

            AOdd.OddSum();
            AOdd.display();

            AEven.EvenSum();
            AEven.display();

            DiffEvenOddSum deos = new DiffEvenOddSum(iNo);

            deos.DiffSum();
            deos.display();
        }
Exemple #2
0
 public void DiffSum()
 {
     ae.EvenSum();
     ao.OddSum();
     iDiff = ae.iSum - ao.iSum;
 }