Exemplo n.º 1
0
        static void Main(string[] args)
        {
            int   a, b;
            Input inp = new Input();
            Sum   s   = new Sum();

            Difference d = new Difference();
            Product    p = new Product();
            Quotient   q = new Quotient();
            Remainder  r = new Remainder();

            inp.number();


            s.GetSum();
            d.GetDifference();
            p.GetProduct();
            q.GetQuotient();
            r.GetRemainder();


            Console.WriteLine("\nSUM:\t\t" + DeclareVar.Sum);
            Console.WriteLine("\nDIFFERENCE:\t\t" + DeclareVar.Difference);
            Console.WriteLine("\nPRODUCT:\t\t" + DeclareVar.Product);
            Console.WriteLine("\nQUOTIENT:\t\t" + DeclareVar.Quotient);
            Console.WriteLine("\nREMAINDER:\t\t" + DeclareVar.Remainder);

            Console.ReadLine();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Sum theSum = new Sum();

            theSum.Compute();
            Difference theDiff = new Difference();

            theDiff.Compute();
            Product theProd = new Product();

            theProd.Compute();
            Quotient theQuo = new Quotient();

            theQuo.Compute();
            Remainder theMod = new Remainder();

            theMod.Compute();
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            // public void declareVar()
            {
                int        a, b;
                Sum        s = new Sum();
                Difference d = new Difference();
                Product    p = new Product();
                Quotient   q = new Quotient();
                Remainder  r = new Remainder();
                Input      i = new Input();
                a = i.number1();
                b = i.number2();
                Console.WriteLine("\nSum:\t\t\t" + s.getSum(a, b));
                Console.WriteLine("\nDifference:\t\t" + d.getDifference(a, b));
                Console.WriteLine("\nProduct:\t\t" + p.getProduct(a, b));
                Console.WriteLine("\nQuotient:\t\t" + q.getQuotient(a, b));
                Console.WriteLine("\nRemainder:\t\t" + r.getRemainder(a, b));

                Console.ReadLine();
            }
        }