Exemple #1
0
 public Numbers Multiply(Numbers n1, Numbers n2)
 {
     return(new Numbers(n1.numerator * n2.numerator, n1.denominator * n2.denominator));
 }
Exemple #2
0
 public Numbers Division(Numbers n1, Numbers n2)
 {
     return(new Numbers(n1.numerator * n2.denominator, n1.denominator * n2.numerator));
 }