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