Ejemplo n.º 1
0
 private MathResult DoMath(double n1, double n2)
 {
     MathResult mr = new MathResult();
     mr.sum = n1 + n2;
     mr.difference = n1 - n2;
     mr.product = n1 * n2;
     mr.quotient = n1 / n2;
     return mr;
 }
Ejemplo n.º 2
0
        private MathResult DoMath(double n1, double n2)
        {
            MathResult mr = new MathResult();

            mr.sum        = n1 + n2;
            mr.difference = n1 - n2;
            mr.product    = n1 * n2;
            mr.quotient   = n1 / n2;
            return(mr);
        }