public static void Main(string[] args) { NaturalNumber n = new NaturalNumber(-2); IntegerNumber i = new IntegerNumber(3); RationalNumber r = new RationalNumber(i, n); r.Write(); r.Square(); r.Write(); }
public RationalNumber(IntegerNumber a, NaturalNumber b) { this.upNumber = a; this.downNumber = b; }