Exemple #1
0
 public void Run()
 {
    var fraction1 = new Fraction(1,5);
    var fraction2 = new Fraction(1,3);
    Console.WriteLine($"Sum is {fraction1 + fraction2}");
 }
Exemple #2
0
 public Fraction(Fraction a) : this(a.numerator, a.denumerator)
 {
 }